File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "mask is not showing pop-up window" Watch "mask is not showing pop-up window" New topic

mask is not showing pop-up window

ajse ruku
Ranch Hand

Joined: May 06, 2005
Posts: 196
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:
subject: mask is not showing pop-up window
It's not a secret anymore!