Struts Form
1 posts in topic
Flat View  Flat View

Posted By:   Anonymous
Posted On:   Friday, May 28, 2004 08:37 AM

Hi There,
I have created a page that takes details from a user. Can anyone tell me what I need to for clearing the form fields when the user wants to fill in the form again?

E.g. there is a link back to the form, if the user clicks on it will take him/her to the form page with the previous details still filled in. Any ideas?


Re: Struts Form

Posted By:   Sean_Owen  
Posted On:   Friday, May 28, 2004 09:09 AM

Simply remove the form bean from the session. Its key is its form "name". Struts will create a fresh form bean instance next time it is needed.
About | Sitemap | Contact