Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Struts and the fly likes mask is not showing pop-up window Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "mask is not showing pop-up window" Watch "mask is not showing pop-up window" New topic
Author

mask is not showing pop-up window

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 193
Hi all,

I have three validations applied on password field.required and minlength are working(throwing pop-up wndows) but mask is not throwing pop-up window but using <html:errors> it is working fine.Can anybody suggest why pop-up is not coming in case of mask.I have checked my message resource(errors:invalid={0} is invalid)

<formset> <form name="LoginForm"> <field property="password" depends="required,minlength,mask"> <arg0 key="LoginForm.password"/> <arg1 key="${var:minlength}" name="minlength" resource="true"/> <var> <var-name>minlength</var-name> <var-value>4</var-value> </var> <var> <var-name>mask</var-name> <var-value>^[a-zA-Z0-9]*$</var-value> </var> </field> </form> </formset>
Srilakshmi Vara
Ranch Hand

Joined: Jul 21, 2004
Posts: 169
You need to give a message key in the field like the following

<msg name="mask" key="xxx.yyy"/>

and give a message in applicationresources property file using the same key value.

Hope this helps!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: mask is not showing pop-up window
 
Similar Threads
How to check if field exist in validation.xml
problem in using mask validation
mask is not showing pop-up window
mask is not working
Using masks in Validations