This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell 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


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.
 
GeeCON Prague 2014
 
subject: How to valdate password and confirm password using validation framework in struts2?