We have a similar situation where we wanted the user to be able to login from several different pages using the same login form, and we wanted to return them to the same page from which they logged in.
We have a hidden field called nextURL in which we populate the current URI. This value is used to send the user back to the URI from which they logged in. <form ...> <input type="hidden" name="nextURL" value="<%=request.getRequestURI()%>" /> </form> In this fashion, no matter where the login form appears, the nextURL parameter will indicate the correct return location. HTH, robert > -----Original Message----- > From: Pyk�l�inen, Eero [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, April 16, 2002 4:12 AM > To: '[EMAIL PROTECTED]' > Subject: Problem with multiple JSPs and one logon.jsp (do) / forwarding > > > I have an application that consists of many JSPs that all include > login.jsp. > Login.jsp's submit button submits the login form to login.do. > > In LoginAction there is naturally code line "return mapping ..." > > How can I implement my application so that no matter where I am I > don't get > forwarded to page defined in forward mapping but instead stay on that very > same page from where I logged in? > > Thank you for your help. > > -- > Eero Pyk�l�inen, Software Developer, Yomi Solutions Oy > > -- > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

