Re: Forwarding to the previous page

2005-09-07 Thread Frank W. Zammetti
On Wed, September 7, 2005 12:44 pm, Michael Jouravlev said: > Consider "standard" for Struts pre/post actions. You have showForm.do > -> JSP -> submitForm.do -> smthElse.do. > > The preceding action for smthElse.do is submitForm.do, so calling it > does not make sense, since it would try to submit

Re: Forwarding to the previous page

2005-09-07 Thread Michael Jouravlev
On 9/7/05, Tremal Naik <[EMAIL PROTECTED]> wrote: > 2005/9/7, Michael Jouravlev <[EMAIL PROTECTED]>: > > Apparently, in "standard" approach with pre/post actions it makes > > sense only to store pre-actions, that is, the rendering actions. In > > the case above it would be "showForm.do". > > well,

Re: Forwarding to the previous page

2005-09-07 Thread Tremal Naik
2005/9/7, Michael Jouravlev <[EMAIL PROTECTED]>: > Apparently, in "standard" approach with pre/post actions it makes > sense only to store pre-actions, that is, the rendering actions. In > the case above it would be "showForm.do". well, I didn't really want to store the previous action path (showF

Re: Forwarding to the previous page

2005-09-07 Thread Frank W. Zammetti
On Wed, September 7, 2005 12:56 pm, Tremal Naik said: > I was thinking of a navigation bean to store in the user session, but > is that 'modifying ANY action' that I was trying to get rid of. Yep, I agree... but that's where a base Action comes in to play :) I suppose it's still a change to all y

Re: Forwarding to the previous page

2005-09-07 Thread Tremal Naik
2005/9/7, Frank W. Zammetti <[EMAIL PROTECTED]>: > I don't think there's anything inherently in Struts to do that, however, > it shouldn't be too hard to do on your own... how about this right before > you return your ActionForward from ANY Action: > > session.setAttribute("previousPage", mapping.

Re: Forwarding to the previous page

2005-09-07 Thread Michael Jouravlev
Consider "standard" for Struts pre/post actions. You have showForm.do -> JSP -> submitForm.do -> smthElse.do. The preceding action for smthElse.do is submitForm.do, so calling it does not make sense, since it would try to submit a non-existent form. By the way, your advice would work great with St

Re: Forwarding to the previous page

2005-09-07 Thread Frank W. Zammetti
> > > > Tremal Naik <[EMAIL PROTECTED]> > 07/09/2005 12:22 PM > Please respond to > "Struts Users Mailing List" > > > To > Struts Users Mailing List > cc > > Subject > Re: Forwarding to the previous page > > > > > > &g

Re: Forwarding to the previous page

2005-09-07 Thread Frank W. Zammetti
I don't think there's anything inherently in Struts to do that, however, it shouldn't be too hard to do on your own... how about this right before you return your ActionForward from ANY Action: session.setAttribute("previousPage", mapping.getPath()); That way, assuming everything in your app does

Re: Forwarding to the previous page

2005-09-07 Thread glenn . deschenes
he consequences of the ActionForm.validate() and errors. HTH, Glenn Tremal Naik <[EMAIL PROTECTED]> 07/09/2005 12:22 PM Please respond to "Struts Users Mailing List" To Struts Users Mailing List cc Subject Re: Forwarding to the previous page 2005/9/7, Duane Rosengart

Re: Forwarding to the previous page

2005-09-07 Thread Tremal Naik
2005/9/7, Duane Rosengartner <[EMAIL PROTECTED]>: > This works very well for me. > > Back aehm,probabily I didn't explain well my problem: I don't have to get back to the previous page from the actual. Look at this code: public class DisplayAboutAction extends Action { public ActionForward

RE: Forwarding to the previous page

2005-09-07 Thread Duane Rosengartner
This works very well for me. Back -Original Message- From: Tremal Naik [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 07, 2005 7:24 AM To: Struts Users Mailing List Subject: Forwarding to the previous page Hi, I have a menu on my application, which is tiled in all the pages. I

Forwarding to the previous page

2005-09-07 Thread Tremal Naik
Hi, I have a menu on my application, which is tiled in all the pages. I have an action of the menu which is common to all the page in which I am, so the execute() method of the action class associated to it must return a forward to the page which called it. I know how to map the forward of an acti