Toby, > So I need to take the referrer of the login page (which traditionally I just > place in a hidden variable in the Login form) and then when login is > complete I need to set the view to the redirect string, rather than the view > assigned in actions.xml. Is there an easy way to do this within the Action > API?
There is an easy way of doing this by configuring security constraints and form based login config in your web.xml. See security related examples provided by your servlet container. If you want to do it by yourself then: You can remember the actual page the user wanted to see by storing request URI into session variable. For example: session.put( "auth_requestURI", getServletRequest().getRequestURI() ); Once you have completed your login procedure you can forward your user to desired page like this: HttpServletRequest request = getServletRequest(); request.getRequestDispatcher( requestURI ).forward( request, getServletResponse() ); PS! Make sure that requestURI does not contain context path and does not begin with '/' when forwarding to another page. But there is hardly any point in doing it by yourself. with best wishes, Taavi _______________________________________________ Webwork-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/webwork-user
