*
The moose likes Struts and the fly likes Confused reading a book called Struts2 in Action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Confused reading a book called Struts2 in Action " Watch "Confused reading a book called Struts2 in Action " New topic
Author

Confused reading a book called Struts2 in Action

PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212
We’ve already shown one basic form of validation offered by Struts 2. To recap that
technique, the Validateable interface,([b]He has shown a example with ActionSupport validate method and referring to the Validate interface
)

are these both same ?? Validator interface and ActionSuport validate()

Please help
Ankit Garg
Sheriff

Joined: Aug 03, 2008
Posts: 9293
    
  17

Well I also have that book. There is one basic form of validation which is implemented by the use of Validateable interface which exposes the validate method. ActionSupport class implements that interface so if you inherit your action from ActionSupport, then you get a validate method. Struts also has an advanced validation framework. For an action to use that, it must implement the ValidationAware interface...


SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
PavanPL KalyanK
Ranch Hand

Joined: Feb 28, 2009
Posts: 212
Excellent explanation .Thanks .
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Confused reading a book called Struts2 in Action