I just found out this wonderful attribute "redirect" in the forward element
!

Thank you all.



debussy007 wrote:
> 
> Hello all,
> 
> I am quite beginner and need some help with the flow of my application.
> 
> When a user click on the Back Button from a specific page, the last
> request is called again,
> How can I avoid this behaviour ?
> 
> See below for the concrete situation where this is a problem for me :
> 
> I have a first page displaying a form which allows a user to authenticate
> into a framework.
> The url is then the following :
> http://localhost:9080/BOUserGroups-PL-Web/init.do
> 
> Then, once authenticated, the user can see a list of the users of the
> framework.
> The url is : http://localhost:9080/BOUserGroups-PL-Web/authentication.do
> 
> Then the user can see the groups of the users by clicking on a user.
> 
> The problem is when the user click the Back button from the list of the
> groups to display the list of the users again.
> IE displays the following :
> *************************
> Warning: Page has Expired The page you requested was created using
> information you submitted in a form. This page is no longer available. As
> a security precaution, Internet Explorer does not automatically resubmit
> your information for you. 
> To resubmit your information and view this Web page, click the Refresh
> button. 
> *************************
> 
> I notice it tries to load url :
> http://localhost:9080/BOUserGroups-PL-Web/authentication.do
> But I do not want it to authenticate again.
> I just want to go to the setup action ListUsersAction which displays the
> list of the users.
> But the flow goes back until AuthenticationAction which treats the submit
> of the form to authenticate.
> 
> My action are the following :
> 
> index.jsp -> InitAction -> authentication.jsp -> AuthenticationAction ->
> ListUsersAction -> users.jsp -> 
> GetGroupsAction -> ListGroupsAction -> groups.jsp
> (I am implementing the setup/submit pattern also called pre-rendering
> pattern)
> 
> Thank you for any kind soul out there who can help a beginner :)
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-Back-button-tf4304755.html#a12253709
Sent from the Struts - User mailing list archive at Nabble.com.


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

Reply via email to