aspose file tools*
The moose likes Struts and the fly likes form displaying the last value from the form bean? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "form displaying the last value from the form bean?" Watch "form displaying the last value from the form bean?" New topic
Author

form displaying the last value from the form bean?

Mona Tajik
Greenhorn

Joined: Apr 27, 2006
Posts: 11
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

Joined: Apr 27, 2006
Posts: 11
Ok I've resolved this problem..I just set the scope="request" and all the input fields were set to null.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: form displaying the last value from the form bean?
 
Similar Threads
get the ActionForm property value into a java variable from JSP
jsp and java bean problem
Does JSF rewrite JSP Page?
Dynamically increased form (Collection)
transfer Bean between JSP and backend