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 expression tag in validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "expression tag in validation " Watch "expression tag in validation " New topic
Author

expression tag in validation

Ram naveen
Greenhorn

Joined: Sep 10, 2008
Posts: 7
hi ,
I have been using Register.java and Register-validation.xml file for validation.all the other tags have been validating.but the below tag is also validating but it never throws any error message that is used in the message tag below.if it finds an error.can anyone help me
<validator type="expression">
<param name="expression">username != password</param>
<message>Username and password can't be the same.</message>
</validator>

Regards
Ram
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: expression tag in validation
 
Similar Threads
Need help with Validation.xml
Struts 2 - comparing dates in validation
Struts 2 Validation
Pop up error while using validation in struts2.0
Annotation in Validation