For Programmers: Free Programming Magazines  


Home > Archive > Java Help > November 2007 > Forward or Redirect to an external page









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Forward or Redirect to an external page
matteo.giulianelli@gmail.com

2007-11-22, 4:34 am

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

2007-11-22, 4:34 am

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

2007-11-22, 8:12 am

On 22 Nov, 11:28, Andrew Thompson <andrewtho...@gmail.com> wrote:
> On Nov 22, 8:03 pm, "matteo.giuliane...@gmail.com"
>
> <matteo.giuliane...@gmail.com> wrote:
>
> 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.


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

2007-11-22, 8:12 am

giugy wrote:
...[color=darkred]
>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 ;)

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

Message posted via JavaKB.com
http://www.javakb.com/Uwe/Forums.as...-setup/200711/1

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com