The Action class. 

Sometimes helper methods are built into the ActionForm to make this
simplier. 

For the native types, the BeanUtis properties and describe methods can
be a quick and easy way to transform the properties. 

Other times, people will create transformation object that takes the
form bean and disburses into several other beans required by their
model. 

Occaisonally, the data bean will already have setters for taking input
from Strings, as a RowSet can.  

This is an admittedly embarrassment of riches, but Struts is designed to
plug into whatever you already have, or want to build.

-- Ted Husted, Husted dot Com, Fairport NY US
-- Developing Java Web Applications with Struts
-- Tel: +1 585 737-3463
-- Web: http://husted.com/about/services


Tom Brunner wrote:
> 
> Hi all,
> 
> >From what I understand all attributes of an ActionForm
> need to be String type so they can be output to the
> GUI via Struts html tags. With this being true or
> assumed currently i am converting these to their
> 'actual' data types in an Action class and they
> shipping them off to some 'model' object to do
> whatever it would like with those values.
> 
> My question is...
> 
> Where is the best place to convert these String
> objects?
> 
> Simple question, but your input is appreciated...
> 
> -Tom
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

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

Reply via email to