On Sat, Jul 12, 2008 at 5:56 PM, Lyallex <[EMAIL PROTECTED]> wrote: > Wouldn't it be great to have the redirect resultType parameterised in > some way so that the target could be set depending on which action was > selected ..
You can. Try something like this: <action name="Login" class="manning.chapterFour.Login"> <result type="redirect"> ${destination} </result> <result name="input">/chapterFour/Login.jsp</result> </action> The key is to have the code that redirects to the login use a request parameter, say, "destination", which contains the current URL. The login action will get that parameter and use it for the redirect. Alternatively, you could forgo the "redirect" result and have the login action method return an instance of ServletRedirectResult directly, initialized with the "destination" value. Don (one of the authors) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]