Why are you trying to do this? Please explain your example.
A good workman is known by his tools.
posted 15 years ago
Say, I have a grid. I got this grid code from ActiveWidget.I don't have luxury of doing much with ActiveWidget because it's a huge code.
The name attribute in the <input> tag will translate to the property attribute specified in the struts <html:hidden> tag.
Once you have set the value of the hidden field, Struts will take care of populating the Form bean. Struts does this simply by using the name on the form. It sees that the name of the hidden input field is "foo" and then executes the setFoo() method on the form bean, passing the value from the page as a parameter.