2003. janu�r 23. 13:25 d�tummal Jo�o Paulo Batistella ezt �rtad:
> Hi!
>
> I have a form with two buttons, submit and cancel. My form has session
> scope. When I press the cancel button I would like to clear all the
> information in the form stored in the session. How can I do this?

In your action when you check if request is cancelled, remove the form from 
the session.
if (isCancelled(request)) {
        session.removeAttribute(mapping.getAttribute());
        return mapping.findForward("cancel");
}

Tib

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

  • Cancel Jo�o Paulo Batistella
    • Gemes Tibor

Reply via email to