struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dave Newton (JIRA)" <j...@apache.org>
Subject [jira] Closed: (STR-3165) White Space validation froCompany Name field
Date Fri, 17 Oct 2008 11:39:38 GMT

     [ https://issues.apache.org/struts/browse/STR-3165?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dave Newton closed STR-3165.
----------------------------

    Resolution: Not A Problem

Please ask questions on the Struts user mailing list.

http://struts.apache.org/mail.html


> 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.


Mime
View raw message