Is there any way besides the following :
request.setAttribute(selectedScreen, request.getServletPath()) ;
RequestDispatcher dispatcher =
request.getRequestDispatcher(/test.jsp) ;
if (dispatcher!=null) {
dispatcher.forward(request, response) ;
}
, the
response to the initial request is created by the given
servlet/jsp. This is transparent to the client.
-Ursprüngliche Nachricht-
Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 8. Oktober 2002 08:42
An: [EMAIL PROTECTED]
Betreff: Forwarding in servlets
to the client.
-Ursprüngliche Nachricht-
Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 8. Oktober 2002 08:42
An: [EMAIL PROTECTED]
Betreff: Forwarding in servlets.
RequestDispatcher dispatcher =
request.getRequestDispatcher(/test.jsp) ;
if (dispatcher
: Forwarding in servlets.
Thanks, so the question now would be like this.
With the dispatcher.forward() method, is it possible to POST data
instead of tacking parameters at the end
of test.jsp ?
--
To unsubscribe, e-mail: mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto
to the request. At this point this has nothing to do
with GET or POST.
-Ursprüngliche Nachricht-
Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 8. Oktober 2002 08:56
An: Tomcat Users List
Betreff: Re: AW: Forwarding in servlets.
Thanks, so the question now would
That's what the spec says.
(It works for me in tc 4.0.3)
-Ursprüngliche Nachricht-
Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 8. Oktober 2002 09:13
An: Tomcat Users List
Betreff: Re: AW: AW: Forwarding in servlets.
So I just do
Ok thanks.
Ralph Einfeldt wrote:
That's what the spec says.
(It works for me in tc 4.0.3)
-Ursprüngliche Nachricht-
Von: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
Gesendet: Dienstag, 8. Oktober 2002 09:13
An: Tomcat Users List
Betreff: Re: AW: AW: Forwarding in servlets.
So I
Message-
From: Kwok Peng Tuck [mailto:[EMAIL PROTECTED]]
Sent: 08 October, 2002 12:42 AM
To: [EMAIL PROTECTED]
Subject: Forwarding in servlets.
Is there any way besides the following :
request.setAttribute(selectedScreen, request.getServletPath()) ;
RequestDispatcher dispatcher
]]
Gesendet: Dienstag, 8. Oktober 2002 09:13
An: Tomcat Users List
Betreff: Re: AW: AW: Forwarding in servlets.
So I just do this ?
RequestDispatcher dispatcher =
request.getRequestDispatcher(/test.jsp?blah=bleh)
;
if (dispatcher!=null) {
dispatcher.forward