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?
posted 12 years ago
Create an Action which loads the form data then forwards to the JSP. Make sure you have validation turned off. Here is an example: