File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes my validwhen validator won't work Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "my validwhen validator won Watch "my validwhen validator won New topic
Author

my validwhen validator won't work

Timothy Sam
Ranch Hand

Joined: Sep 18, 2005
Posts: 746
looking at the examples is confusing me more... I'm not sure if I've formed my tags well...



<field depends="validwhen" property="retypedPassword">
<arg0 key="errors.mismatch"/>
<var>
<var-name>test</var-name>
<var-value>(*this* == password) and (*this* != null)</var-value>
</var>
</field>



I'm using struts 1.2. I tried to skip this problem before because I was having a hard time figuring it out. But I have to deal with it again so I'm asking for help. Could anyone answer my prayers? Thanks!

[ January 26, 2006: Message edited by: Timothy Sam ]
[ January 26, 2006: Message edited by: Timothy Sam ]

SCJP 1.5
http://devpinoy.org/blogs/lamia/ - http://everypesocounts.com/
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: my validwhen validator won't work