It should be pretty easy:
1. On your JSP page, make a submit button that is named "back"
2. In your action class, have something like this near the top of your
perform() method:
if (request.getParameter("back") != null)
{
// redirect them to some previous page
}
Just make sure that, if you use the validate() method, you prevent
validation when they click the back button, like this:
validate()
{
if (request.getParameter("back") == null)
{
// do all of your validation; they didn't click "back"
}
}
HTW.
Tom
On Sun, 2002-01-06 at 20:33, George White wrote:
> Hi everyone,
>
> Does anyone know how to code a "Back" button -- one that works like the I.E. "Back"
>toolbar button?
> I currently use one that requires JavaScript and would like to switch to one that
>works with Struts/JSP but is not dependent upon JavaScript.
>
> Thanks.
> George
>
>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>