The Struts html tags use individual getters to populate a HTML form. 

The Struts ActionServlet can populate an ActionForm from a request using
individual setters. 

The Struts bean:write tag expects an individual getter; it can handle
native types or any type with a toString() method. 

The typical pattern would be to populate a value object from the model,
and then use bean:write to display the values. 

For it to be a "valid" bean, it should have at least one default
constructor, though alternatives, including bulk constructors, are
permitted. I tend to create a bulk setter, and then call that from a
bulk constructor if needed. Though, bean:write is not going to care
about any of that.

No idea if this is what you are asking, though ;-)

-T.

Reply via email to