Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-3165

White Space validation froCompany Name field

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 1.2.4
    • None
    • Website
    • None
    • Important

    Description

      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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sonali sonali sawant
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: