You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "sonali sawant (JIRA)" <ji...@apache.org> on 2008/10/17 12:31:36 UTC
[jira] Created: (STR-3165) White Space validation froCompany Name
field
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.
[jira] Closed: (STR-3165) White Space validation froCompany Name
field
Posted by "Dave Newton (JIRA)" <ji...@apache.org>.
[ 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.