For input, I would suggest that you create an ActionForm for each
DataPackage. 

For output, I would suggest that you create a custom tag that can access
the DataPackage fields directly. 

Using ActionForms to represent larger views of the data is an
interesting topic, but I'm not sure if it applies to your project, if
the DataPackages are "basically a map of the database table", and your
application can input to one DataPackage at a time.

-- Ted Husted, Husted dot Com, Fairport NY USA.
-- Custom Software ~ Technical Services.
-- Tel 716 737-3463.
-- http://www.husted.com/about/struts/


Pan Li wrote:
> 
> Ted,thanks a lot.
> 
> So your suggestion is to use an ActionForm as an
> "view" of all database tables.So how would I resove
> these problems?
> 
> 1.When use JSP to input data.
> If the JSP has an input field named "foo" and the
> ActionForm has a property named "foo",Struts will fill
> the property "foo" with the value of input filed "foo"
> (If I'm not wrong).
> But my ActionForm will not has a property "foo".
> 
> 2.Validation
> It seems that validation will be much harder.
m/

Reply via email to