Action Forms are DTO objects. They are not your model/domain/business objects. 
Struts is the only
framework (historical design) that forces you to use String objects in the 
Form/DTO, but that's
not a bad thing. It's a container to accept user input, which is all from the 
Internet transmitted
as strings. You can of course have non-string values in the form, but those 
should NEVER accept
input -- and it's because the input needs a place to reside as Strings before 
the validator can
validate them. Otherwise you would blow up with bad input when the conversion 
fails.

Now this will change with Struts 2.x; there is an automatic type converter and 
you can submit into
model/domain/business objects. That's a good thing too because Spring, WebWork, 
Tapestry, JSF, and
all other modern frameworks allow this.

Paul

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to