I am new to Struts framework, currently I am developing a web based application using struts framework.
As we know that, in Struts application we can override the validate() in our user-defined Formbean-class to validate the user input, similarly can I override it inside my Action class’s execute()?
If I can, after adding the ActionError object to the ActionErrors object, what all I need to do? Just help me with explanation.
You can’t override it, because Action doesn’t define any
validate()method. But you can perform validation in an action, yes: