struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From 梁炳場 <pc.le...@gmail.com>
Subject Re: Navigating back to a previous page
Date Mon, 29 Aug 2005 09:21:27 GMT
Can it be done if the back button of IE goes to the page (menu page)
before the input form?

I do not want a common back page.

It seems that I have to extend the back button of IE or something else?

Can it be defined in JSP or struts-config.xml?

Thanks


2005/8/28, Martin Gainty <mgainty@hotmail.com>:
> Javascript:go.history(-1) will accomplish this.. but beware you will lose
> the contents of the previous form
> 
> Unless you know of a way to retain all the information by pressing/clicking
> the back button ?
> 
> M-
> ----- Original Message -----
> From: "Leon Rosenberg" <struts_user@anotheria.net>
> To: "'Struts Users Mailing List'" <user@struts.apache.org>
> Sent: Saturday, August 27, 2005 9:45 AM
> Subject: Re: Navigating back to a previous page
> 
> 
> Hmm
> 
> Correct me if I wrong,
> but  I think the reset method of the form will help you only if you want to
> get back to the input page of the form.
> In the described usecase Jonathan wants to get back to ANY other page he
> could came from. So how you can ensure that he
> have a form at all?
> 
> Regards
> Leon
> 
> > -----Ursprüngliche Nachricht-----
> > Von: Martin Gainty [mailto:mgainty@hotmail.com]
> > Gesendet: Samstag, 27. August 2005 15:20
> > An: Struts Users Mailing List
> > Betreff: Re: Navigating back to a previous page
> >
> > Jonathan-
> >
> > If you want to preserve the values when back button is
> > pressed you will have to override reset method in your
> > (Dyna)ActionForm
> >
> > Take a look at
> > http://64.233.161.104/search?q=cache:dHwd5qvFAJ4J:www.javapass
> > ion.com/j2ee/StrutsAdvanced_speakernoted.pdf+Struts+and+%22ove
> > rride+reset%22+AND+%22example%22&hl=en
> >
> > Martin-
> > ----- Original Message -----
> > From: "jonathan gilmore" <jonathangilmore@hotmail.com>
> > To: <user@struts.apache.org>
> > Sent: Saturday, August 27, 2005 6:41 AM
> > Subject: Navigating back to a previous page
> >
> >
> > >
> > > I have a common screen that is navigated to by many other
> > screens.  Does
> > > Struts have support for remembering the previous screen so
> > that my common
> > > screen needs only one 'back' button to return the user to
> > their original
> > > location?
> > >
> > > I have looked through the docs and havn't found anything.
> > >
> > > Any comments much appreciated
> > >
> > >
> > >
> > >
> > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > > For additional commands, e-mail: user-help@struts.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> > For additional commands, e-mail: user-help@struts.apache.org
> >
> >
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message