Is there a reason you aren't using the Struts <html:text> tag for this? If you simply write:
It will work. In case you didn't realize it, Struts does populate the value attribute automatically based on the current contents of the ActionForm bean, so specifying a value attribute is unnecessary.
If you insist on using the plain HTML <input> tag, it will also work if you change the name attribute from textfield2 to department.workchecDepartmentName. Struts uses the name attribute of an input to populate the ActionForm bean. [ February 21, 2007: Message edited by: Merrill Higginson ]
the JSP including the <html:form> tag and the modified <html:text> tag
The portion of your Action class you say isn't working
What I'm most interested in knowing is: Is there a department property in your ActionForm with a corresponding getter and setter? Is your Actionform in session scope? If it isn't, put it in session scope and see if it works. If you still want it in request scope, I can show you how to deal with that later. [ February 21, 2007: Message edited by: Merrill Higginson ]