Thanks Ted!  I felt a little queezy about using "requiredstring" but
couldn't get Eclipse to reveal a list of valid atrribute values with code
assist.

On 3/23/07, Ted Husted <[EMAIL PROTECTED]> wrote:

On 3/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> what about simple type conversion? How will you ever have non-string
> coming from html? Does this mean we are back to domain object with
> only strings?

No, it means that we have a special validator for Strings to cover
both the notion of being null and the notion of being empty, and
optionally trimming it first.

* http://struts.apache.org/2.x/docs/required-validator.html

* http://struts.apache.org/2.x/docs/requiredstring-validator.html

-     <field-validator type="requiredstring">
+     <field-validator type="required">

-Ted.

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




--
Scott
[EMAIL PROTECTED]

Reply via email to