Raghavendra i Rao wrote:
>
> Hi,
> I have a jsp that shows a form (User.jsp)and on submitting the form , it goes to
>another page action.jsp. Now if there is any error in the form (which I check in
>action.jsp), I want to transfer control back to the first jsp page (User.jsp.
>Something like a loop ). I use
> <jsp:forward page="User.jsp"/>
> in action.jsp to do this ,but this does not display the page User.jsp and a blank
>screen is shown with the url showing the page action.jsp.
> Could somebody please let me know how can I get this accomplished.
>
> In User.jsp I have :
> document.rfUserMgmtform.action ="action.jsp";
>
> In action.jsp I have
> <jsp:forward page="User.jsp"/>
>
> It is some kind of a loop behavior. I am using jsp forward since I need to forward
>the request parameters from action.jsp to User.jsp .Any help is highly appreciated.
This should work, assuming you're using a JSP 1.0/1.1 container (as opposed to a
0.9x
container). If you are using 1.0/1.1, it sounds like a bug in the JSP container.
Which one is it?
Hans
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
===========================================================================
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