On 7/11/05, Rivka Shisman <[EMAIL PROTECTED]> wrote:
> Hi guys,
> 
> Borislav - thank you for the time you spent debugging this issue :-)
> 
> So now I wonder - is it o.k. to use typed properties in my Action Forms?
> Or is there an important reason why I should Strings only?
> 

To answer this question for yourself, please build a trivial Struts
based application like this:

* Build a form bean that has a property of type "int".

* Build a JSP page with a form that binds this property to a text input field.

* Deploy the application, and type "1a3" instead of "123" into that field.

If you like the result (a runtime exception), then by all means go
ahead and make your action form properties be typed.  Otherwise, if
you're going to use Struts you should listen to all the tutorials and
books and articles and mailing list messages that tell you to make
your form bean properties be strings :-).

Craig McClanahan

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

Reply via email to