| 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
Saloon Keeper
Joined: Aug 03, 2008
Posts: 9191
|
|
|
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 .
|
 |
 |
|
|
subject: Confused reading a book called Struts2 in Action
|
|
|