You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Tom Brunner <br...@yahoo.com> on 2002/02/22 22:08:26 UTC

Parsing ActionForm Strings

Hey all,

Quick question...What is the best place to parse
Strings to actual data representations from an
ActionForm?

I have a co-worker that is complaining that Struts is
going to take too long to do something like that in an
action class.

He believes that when an ActionForm is created it
should set some value in another Form object that
holds actual data types to save time...

Anyway, sorry to bore you all with a boring question
but what is the best way to do this and why? 

thanks for your input and time...

-Tom 

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: Parsing ActionForm Strings

Posted by Louis Leung <lo...@sun.com>.
if i understand you right, you want to change the input, which is Strings, to
actual data types (i.e. Dates, Boolean, etc.) in the ActionForm.

This issue has been brought up before, read the pass post on :
Subject:  Re: Form -> Bean conversion
 Date:            Fri, 15 Feb 2002 16:47:39 -0500







Tom Brunner wrote:

> Hey all,
>
> Quick question...What is the best place to parse
> Strings to actual data representations from an
> ActionForm?
>
> I have a co-worker that is complaining that Struts is
> going to take too long to do something like that in an
> action class.
>
> He believes that when an ActionForm is created it
> should set some value in another Form object that
> holds actual data types to save time...
>
> Anyway, sorry to bore you all with a boring question
> but what is the best way to do this and why?
>
> thanks for your input and time...
>
> -Tom
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Sports - Coverage of the 2002 Olympic Games
> http://sports.yahoo.com
>
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>