It's not a secret anymore!
The moose likes Struts and the fly likes Confused reading a book called Struts2 in Action Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Frameworks » Struts
Reply 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
Saloon Keeper

Joined: Aug 03, 2008
Posts: 9191
    
    2

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 .
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Confused reading a book called Struts2 in Action
 
Similar Threads
How flexible the application is?
No enclosing instance of type is accessible in scope
Why Compilation fails here???
Ignore type conversion errors with EL
adding label dynamically to frame