Stefan

I am not aware of a way of recording the last JSP/(Action or Servlet) a 
user was at within Struts, so for my applications I do it myself and save 
the String to a Session object (or store it within another object that is 
stored in the session scope).  I do it seperately for the JSP and (Action 
or Servlet) urls, as depending on what I am doing, depends on which one I 
go back to.

Each action (or servlet) that is called updates the value of the two 
session properties, thus a successive servlet can reference them.

There may of course be a more refined way to do this, but at least this is 
relatively simple.

Cheers

Christopher Marsh-Bourdon
www.marsh-bourdon.com





Stefan Siegl <[EMAIL PROTECTED]>
27/07/2004 13:50
Please respond to "Struts Users Mailing List"

 
        To:     [EMAIL PROTECTED]
        cc: 
        Subject:        How to get the ActionForward for the _previous_ page


Hello,

I created a small application using Struts and the internationalization 
and provided images (with the flags in the appropriate language) that 
allow the user to change the language. The changing of the language is 
done using a normal Action class. My problem is that after changing the 
language (resetting the session attribute) I do not know where to 
forward to. I want to forward to the last page independently on which 
page the language was selected. The problem with Struts is that i do not 
get any information about the last page that the user was on, so I am 
not able to forward to the last page. Is this correct or is there any 
workaround to do this?

If this is not possible, then it would be nice to have that in a further 
release of Struts because I think that would be very helpful to create 
dialogues based on Struts.

Thanks for your time,
Best regards,
Stefan

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-----------------------------------------
The information in this e-mail is confidential. It is intended solely for the 
addressee. If you are not the intended recipient please notify the sender immediately 
and delete this message. Any review, dissemination, distribution, copying or other use 
of this communication or the information in it is strictly prohibited.

Reply via email to