I have:

<form-bean name="adapterSchemaForm"
            type="org.apache.struts.validator.DynaValidatorActionForm">
       <form-property name="accion" type="java.lang.String"/>
       <form-property name="schemaId" type="java.lang.String"/>
       <form-property name="schemaName" type="java.lang.String"/>
       <form-property name="schemaBaseSchema" type="java.lang.Integer"/>
       <form-property name="schemaClassName" type="java.lang.String[]"/>
   </form-bean>

I need to validate that "schemaClassName" has at least one value (its length is > 0), in struts 1.x.

Thanks.


Seshagiri V escribió:
Hi ,
Please mention clear requirement in struts2.x or struts1.x
Thank you,
Seshagiri V
seshagi...@kensium.com. US Main: 877 KENSIUM (536.7486)
US Fax:   312.242.3029
Kensium
200 S Wacker Dr, Suite 3100
Chicago, IL 60606
Confidentiality Note:
-----------------------------
The information contained in this e-mail is strictly confidential and for
the intended use of the addressee only. Any disclosure, use or copying of
the information by anyone other than the intended recipient is prohibited.
If you have received this message in error, please notify the sender
immediately by return e-mail and securely discard this message.
-----Original Message----- From: Pablo Vázquez Blázquez [mailto:pvazq...@denodo.com] Sent: Tuesday, January 20, 2009 3:43 PM
To: Struts Users Mailing List
Subject: [S1] Validation

Hi all!

Now I am used to use Struts2 and have forgotten some things about Struts1.... Well, if I have a form with a <form-property name="schemaClassName" type="java.lang.String[]"/>, how can I validate it to check its size is > 0?? With "required" it does not work...

Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Internal Virus Database is out of date.
Checked by AVG - http://www.avg.com Version: 8.0.176 / Virus Database: 270.10.0/1862 - Release Date: 12/23/2008
12:08 PM


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to