This is really a user list question, however, the only issue is in
validation and form redisplay.  HTML doesn't have an 'integer' field so
users can enter non-integers.  When the non-integers are assigned to your
integer fields, the bad values will be discarded.  When the form is
redisplayed, the users values will be unexpectedly blanked without seeing
what they entered which caused the problem.  If you are passing ID's around
which the user will not really be entering then the issue is moot.

Edgar

> -----Original Message-----
> From: Stjepan Brbot [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, April 07, 2004 9:31 AM
> To: STRUTS - Developer
> 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]
> 
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.638 / Virus Database: 409 - Release Date: 3/21/2004
>  
> 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.638 / Virus Database: 409 - Release Date: 3/21/2004
 

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

Reply via email to