You also might want to make a special Result class that extends ServletDispatcherResult or ServletRedirectResult that helps you achieve this kind of logic.
-Pat ----- Original Message ----- From: "Francisco Hernandez" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, September 25, 2003 11:20 AM Subject: Re: [OS-webwork] Let view know the return value > I would just have an action property like originUrl in the login action > and redirect them to that url after a successful login, return a > redirectTo result with the parameter being the originUrl > > > > > Samuel Mota wrote: > > Hi, > > > > I'm using an Interceptor that returns LOGIN if the user have not logged in ... > > > > I'm mapping all actions LOGIN view to my login page (duh!) and using redirect. > > > > Is there some way to the view page (I'm using JSP) know where the user came from and then show the > > appropriate message? Or even after login redirect (now in the action) to the previous page? > > > > thanks > > > > + Samuel G. Mota > > + [EMAIL PROTECTED] > > + 55 (11) 4417 7093 > > + Business Application Dpt. > > + Netset Serviços em Tecnologia > > + a Hypercom Company > > + http://www.hypercom.com > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > http://thinkgeek.com/sf > > _______________________________________________ > > Opensymphony-webwork mailing list > > [EMAIL PROTECTED] > > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > > > > > > > > > > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Opensymphony-webwork mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork