• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

html tag

 
Keith Lockey
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
<html:text property="agencyCode" />
My form bean fills this text box in when I press submit which is fine. But I want the struts form bean to fill in the text box when the jsp page loads to the browser the first time. I tried putting the method which retrieves the value of agencyCode in the constructor of the bean but this doesn't work?

 
Rick Hightower
Author
Ranch Hand
Posts: 350
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Create an Action which loads the form data then forwards to the JSP.
Make sure you have validation turned off.
Here is an example:
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic