Kevin Duffey wrote:
> Hi all,
>
> Wondering if anyone else is noticing what I am. When I forward to a URL from
> the controller servlet, the web browser URL shows the information as if it
> were a GET method, but I am using POST.
>
> <form action="Enroll.do" method="post">
>
I have not seen this behavior.
How are you doing the forward? If you're using RequestDispatcher.forward(), the
displayed URL in the client browser will not change -- it will still end with
"Enroll.do" -- because the browser has no clue that the request was forwarded. If
you're using sendRedirect() instead it sounds like something might be configured
strangely in your browser -- a redirected POST is still supposed to POST to the new
URL.
>
> When the controller servlet forwards, should I remove attributes or
> something? Is there something I need to do to the request object, or the
> response object? If I recall, Im not to touch the response object because
> then it screws up the forward output of the JSP page.
>
You shouldn't have to do anything.
>
> Thanks.
>
Craig McClanahan
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets