Hello Michael!

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

Looks most bewilding if you want to know my opinion!
If you do not use anything like this already I advice
you to read my notes on viewing HTTP browser-server dialog
at http://tagunov.tripod.com/i18n/view.html
(this is a part of larger article at /i18n/i18n.html)

Then you may get a better picture of what happens.
To me look quite like a servlet container bug.
What servlet container do you use?

If you find anything out will be intereseted to hear
from you.

--
Best regards,
 Anthony                            mailto:[EMAIL PROTECTED]

___________________________________________________________________________
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