Hi Markus and thanks a lot for reply.

I'm getting it running using sendRedirect() the way like this in my
doPost():

  
response.sendRedirect(HttpUtils.getRequestURL(request).append("?id=").append(id).toString());

and it's working just fine.

Whether it will be better to use RequestDispatcher approach and why?


Maxim

-- Original message --
From: "Markus Kirsten" <[EMAIL PROTECTED]>
Date: Thursday, February 07, 2002, 11:35:44 PM
Subject: URL changing

MK> Hi Max,
MK> The way I would do it is to first get the parameters in your doPost()
MK> method, then create a RequestDispatcher that point to your preferred URL
MK> including the GET parameters encoded in the URL. After that just forward
MK> the request to a servlet (eventually the same) with rd.forward(URL).

MK> Hope this helps!


MK> Markus Kirsten

MK> ___________________________________________________________________________
MK> To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
MK> of the message "signoff SERVLET-INTEREST".

MK> Archives: http://archives.java.sun.com/archives/servlet-interest.html
MK> Resources: http://java.sun.com/products/servlet/external-resources.html
MK> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to