In struts how to use regurlar formbeans using validation
framework explain?
Answer Posted / santosh kumar
if u want to use validator plug-in in ur application
->u have to call the super class validate() from ur FormBean
class validate()
ex :
public ActionErrors validate(ActionMapping
map,HttpServletRequest req)
{
ActionErrors ers=super.validate(map,req);
----------------
----------------
}
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
What is the difference between plain-validator and field-validator?
What are the some useful annotations introduced in struts2?
Explain the difference between plain-validator and field-validator in struts?
What configuration changes are required to use resource files in Struts?
What is role of actionservlet?
Who wrote struts?
How client side validation is enabled on a jsp form?
What do you mean by the abstract package in struts2, and what is its utilization?
Which interceptor is responsible for i18n support?
Which design pattern the interceptors in struts2 is based on?
When should we use SwtichAction?
What is action class?
How to work with error tags?
What are the ways in which duplicate form submission can occur?
How can we display validation errors on jsp page?