aspose file tools
The moose likes Struts and the fly likes html tag Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "html tag" Watch "html tag" New topic
Author

html tag

Keith Lockey
Ranch Hand

Joined: Oct 05, 2001
Posts: 48
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?



Thanks,<br />Keith
Rick Hightower
Author
Ranch Hand

Joined: Feb 20, 2002
Posts: 350
Create an Action which loads the form data then forwards to the JSP.
Make sure you have validation turned off.
Here is an example:


Rick Hightower is CTO of Mammatus which focuses on Cloud Computing, EC2, etc. Rick is invovled in Java CDI and Java EE as well. linkedin,twitter,blog
 
Don't get me started about those stupid light bulbs.
 
subject: html tag