hi,
i have a problem concerning response.sendRedirect(aLoc). i use resin 2.0.3.
the javadocs for this method state "Sends a temporary redirect response to
the client using the specified redirect location URL.". my interpretation of
this is that the client receives a response from the server indicating which
location the client has to request in order to get his original request
fulfilled so the client does another request.
here's the problem:
in a webapplication i have a servlet receiving a post form, the data entered
�n the form is subject to some computations, the results of that is stored
in the user's session. then i use res.sendRedirect(theURL) to send the
client to the servlet that will render the results to html. if i do so
there's no output, instead the computation is done another time, and then i
see the output.
if I add the following lines before the res.sendRedirect(...)
Enumeration enu = req.getParameterNames();
while (enu.hasMoreElements())
    req.removeAttribute((String)enu.nextElement());
everything works all right.
why do i have to remove all attributes from the request object before doing
the sendRedirect? i thought that they were removed anyway, because the
client sends another request (with no attributes) to get the results.

thanks for your help in advance!

michael weller

___________________________________________________________________________
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