Re: help removing a formbean in session

2003-02-26 Thread Gemes Tibor
Richard Raquepo wrote:

i have set scope to session so that on error the textbox will be populated with previos user entry. If the validation succeeds then i'll save the record. But here's my problem
whenever i return to the my AddScreen the last values is still there. How to i manually call the reset button of my formbean userAccountForm.
 

In your saveTmAccount action remove like this:

   // remove the formBean from session
   session.removeAttribute(mapping.getAttribute());
   return mapping.findForward("success'");
Hth,

Tib



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


help removing a formbean in session

2003-02-26 Thread Richard Raquepo
i have this in my struts-config
   


  
   



   

i have set scope to session so that on error the textbox will be populated with 
previos user entry. If the validation succeeds then i'll save the record. But here's 
my problem
whenever i return to the my AddScreen the last values is still there. How to i 
manually call the reset button of my formbean userAccountForm.

thanks.