Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

form displaying the last value from the form bean?

 
Mona Tajik
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi evryone..can anyone help me with my problem here? I have an AddUserForm bean that is used by the AddUserAction class. What it does is get the information about the user, validates it and add it to the database. After the data is successfully added the action will be forwarded to a JSP that list all available users.

My problem is when I try to add another user it displays the previous input information. Can anyone kindly give information on how to clear this without using the value="" in my JSP/html page? Where can I reset the value of my FORMBEAN to null or ""?

Thanks
 
Mona Tajik
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I've resolved this problem..I just set the scope="request" and all the input fields were set to null.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic