Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / First Aid / November 2007

Tip: Looking for answers? Try searching our database.

Forward or Redirect to an external page

Thread view: 
matteo.giulianelli@gmail.com - 22 Nov 2007 09:03 GMT
Hi, sorry for my english but i don't speak it very well..... I need
help with my jsp......

I have a jsp that i use only to "transport" data....I have an
index.jsp page with a <form.... in wich i can put some values....when
the values are put these are post to the call.jsp page that I use only
to do a redirect to an external page (like http://199.199.199.199/Test/test.jsp)
with the data obtain from the index jsp "post"....I have use this
methos:
1) RequestDispatcher disp = request.getRequestDispatcher("http://
199.199.199.199/Test/test.jsp");
disp.forward(request,response);
but i have read that the RequestDispatcher forward can redirect only
to page on the local server (or on the server of the application that
contain the jsp).....so I have try with a simple redirect...
response.sendRedirect("http://199.199.199.199/Test/test.jsp");
and this send me to the correct test.jsp page....but without the data
that call.jsp obtains by "post" previously.....somebody know how i can
redirect to test.jsp page bringing tha data obtain by the post in
index.jsp page????

Because I can do it with jsp tags....and in run correctly in
local.....but i need that it's do by a script java that i put in the
jsp....because this is the part of a more big project that use server
weblogic, bus aqualogic, javascript call.....etc.....so for various
reasons I can't do it with jsp tags.....I need to put this script java
<% ????????? %>
in my jsp.....

Ultimately this is what i have to do:
POST SOME PARAMETER WITH "POST"AT A JSP PAGE CALL.JSP,THE PAGE IS NOT
EVEN DISPLAY BUT IT REDIRECT AUTOMATICALLY TO AN EXTERNAL PAGE ON A
WAR UPLOADED ON A BUS (http://199.199.199.199:7021/Bus/test.jsp) AND
IT BRING BEHIND THE REQUEST AND THE RESPONSE SO THAT test.jsp WITH
getParameter OBTAIN SOME PARAMETER NECESSARY TO CREATE A JSON AND SO
IT PLACE THIS JSON ON THE RESPONSE.....

Thanks so much and sorry again for my english......
Andrew Thompson - 22 Nov 2007 10:28 GMT
On Nov 22, 8:03 pm, "matteo.giuliane...@gmail.com"
<matteo.giuliane...@gmail.com> wrote:
> Hi, sorry for my english ...

I can understand your English.

It is your multi-post to two of the
comp.lang.java.* usenet newsgroups, as well
as another 2 usenet newsgroups(, and at
least 3-4 other 'Google' groups) that I
find astoundingly rude.

Please refrain from multi-posting in future.

(X-post to c.l.j.p./h., w/ f-u to c.l.j.h. only)

--
Andrew T.
giugy - 22 Nov 2007 11:19 GMT
> On Nov 22, 8:03 pm, "matteo.giuliane...@gmail.com"
>
[quoted text clipped - 15 lines]
> --
> Andrew T.

Ok...sorry for multi-post but I'm new in ng....for my english I can't
believe that you don't understand what i say (even if my english is
really horrible....and i say sorry for this).....but if you can't
answer or if you haven't the knowledge to answer....you do not ashamed
and blaming my English if you haven't the knowledge....there isn't
problem.....even if you are right and my english is horrible.....thanks
Andrew Thompson - 22 Nov 2007 12:21 GMT
>> On Nov 22, 8:03 pm, "matteo.giuliane...@gmail.com"
...
>Ok...sorry for multi-post but I'm new in ng....

That is OK.

>...for my english I can't
>believe that you don't understand what i say

Your English is OK too.  I understand you fine.
I am sorry, I must have said it wrong.

>.....even if you are right and my english is horrible.....

Your understanding of English is *not* horrible.

Also, thank you for taking the effort to translate
your 'native tongue' so that an international audience
such as myself, can help, where appropriate.

I am not sure from the reply in Itallian over on
comp.lang.java.programmer.
- Did that answer your question?
- What did that person say?
( While your understanding of English is good,
my understanding of Italian amounts to what
Google can 'translate' for me ;)

Signature

Andrew Thompson
http://www.physci.org/



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.