White Space validation froCompany Name field
--------------------------------------------

                 Key: STR-3165
                 URL: https://issues.apache.org/struts/browse/STR-3165
             Project: Struts 1
          Issue Type: Task
          Components: Website
    Affects Versions: 1.2.4
            Reporter: sonali sawant


Hi, 
       I am facing problem in white space validation. I want company name 
should accept spaces also. But it should not accept white space at start.  My 
code is allowing to enter sapce in between 2 words and it's not allowing space 
at first place. Till here its perfect. Now i dont want to allow 3 space at 
start and characters after that 3 spaces. It should not be allowed. so anybody 
can tell me how to validate that part?
My code is : 
             <field  property="name" depends="required,mask">
                        <arg key="companyRegistrationForm.name" position="0"/>
                        <arg key="${var:mask}" name="mask" resource="false" 
position="1"/>
                        <var>
                                        <var-name>mask</var-name>
                                        <var-value>^[0-9a-zA-Z/s]*$</var-value>
                                </var>
                </field>

Regards,
Sonali.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to