This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes How to valdate password and confirm password using validation framework in struts2? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "How to valdate password and confirm password using validation framework in struts2?" Watch "How to valdate password and confirm password using validation framework in struts2?" New topic
Author

How to valdate password and confirm password using validation framework in struts2?

Kurt Xu
Ranch Hand

Joined: Sep 29, 2009
Posts: 32
jsp:


validation.xml:


but it didn't work, it can't compare password with confirm password. Where am I wrong?
thanks in advance.
Juan Acv
Greenhorn

Joined: Apr 02, 2010
Posts: 18
Maybe it's the name:

The name of the file must be ActionClass-validation.xml, where ActionClass is the name of the action class must be validate, and must be in the same directory.

Maybe, is some issue in the interceptors.

Sorry, but i am very new too in struts 2.

Greetings
Kurt Xu
Ranch Hand

Joined: Sep 29, 2009
Posts: 32
Juan Acv wrote:Maybe it's the name:

The name of the file must be ActionClass-validation.xml, where ActionClass is the name of the action class must be validate, and must be in the same directory.

Maybe, is some issue in the interceptors.

Sorry, but i am very new too in struts 2.

Greetings


The file name is right, I just don't give the full name here.
thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: How to valdate password and confirm password using validation framework in struts2?
 
Similar Threads
problems validation.xml in struts 2
struts 2 validation and prevent double submit
Struts 2.1 error message breaks page html formatting
error in validation
validation in struts2