• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Confused reading a book called Struts2 in Action

 
PavanPL KalyanK
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
PavanPL KalyanK
Ranch Hand
Posts: 212
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Excellent explanation .Thanks .
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic