the html:text tag must be nested inside an html:form tag.
The html:form tag must have the action attribute defined.
The action must refer to a valid action defined in the struts-config.xml
To be valid the action must have a valid name attribute defined
To be valid the name must refer to a valid form-bean tag name attribute in the struts-config.xml
The form-bean tag must have a name and type, the type must refer to an ActionForm (probably one you've defined)
Once this structure is satisfied, toss out the nested bean:write tag and replace it with an html:text tag in the proper form:
and struts will automatically populate the text input with the value returned from getThePropertyToBeDisplayed() of the current MyFormName form.
(both when displaying it to the user, and again when the user submits the form, thereby removing the responsibility of having to set and get the property from you, allowing you concentrate on other, more important, things) [ February 23, 2005: Message edited by: Ray Stojonic ]