Hi Stjepan,

>From what I understand, you will have a much easier time implementing
validation for your forms if you use only strings. For example, receiving an
integer value "ABCDEFG" might cause unexpected results.
This is just my understanding. If theres more to it, them I'm happy to learn
:)

Andreas

-----Ursprüngliche Nachricht-----
Von: James Mitchell [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 07. April 2004 15:34
An: Struts Developers List
Cc: Struts Users Mailing List
Betreff: Re: Field types in ActionForm/DynaForm


This needs to be on [EMAIL PROTECTED]


--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx
MSN: [EMAIL PROTECTED]
Yahoo IM:[EMAIL PROTECTED]



----- Original Message -----
From: "Stjepan Brbot" <[EMAIL PROTECTED]>
To: "STRUTS - Developer" <[EMAIL PROTECTED]>
Sent: Wednesday, April 07, 2004 9:31 AM
Subject: Field types in ActionForm/DynaForm


> Hi all,
>
> Does STRUTS ActionForm/DynaForm have to consist only of String object
> fields!? Although I saw this strong recommendation in some books and
> articles on Internet (since all parameters in Request are Strings) I use
> Action and DynaForms with java.lang.Integer fields and everything works
> fine! (Integer fields are very convenient when one deals with EJBs where
IDs
> are of Integer type.) It seems that STRUTS framework automatically
converts
> Strings from request into defined fields types of Form. Why should one use
> only String fields and avoid Form fields other than Strings?
>
> Stjepan Brbot
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>



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


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

Reply via email to