This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Populating Form-Bean value in text box Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Populating Form-Bean value in text box" Watch "Populating Form-Bean value in text box" New topic
Author

Populating Form-Bean value in text box

Nikhil Bansal
Ranch Hand

Joined: Jan 24, 2005
Posts: 60
Hi All,

I am having a JSP in which the user enters a Key Value in the text box. This key value is part of the form bean. When user presses Go button the Key is validated from the database and next record is returned. The next record contains the new key value.

I intend to populate this new key in the text box in JSP. But I always see the old key to be a part of the text box, even though I set the new key in the form explicitly through the set method.

Please help.

Regards

Nikhil Bansal


ban$al
Brent Sterling
Ranch Hand

Joined: Feb 08, 2006
Posts: 948
If you included your existing code it might help to spot the issue.

- Brent
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Populating Form-Bean value in text box
 
Similar Threads
Can javascript function set value of a form bean property?
Problems with sessionID persistence...
Submitting with "Enter" from textbox where there are several submit buttons on form
pagination problem
Calling bean method in enter press key