• Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with struts ActionMessages/ActionErrors  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
can anyboduy tell me how can we differentiate between required, minlenth or requiredif kind of validation errors(which are declared in the validator-rules.xml with depends attribute)....ie if i have a validate method in my form such that......

public ActionErrors validate(ActionMapping mp,HttpServletRequest req)
{
ActionErrors er=super.validate(mp,req);
--------
-------
}

now is it possible to retrive the error messages from attribute "er" and find out which type of validation error is it.... whether required,minlength etc
 
Author and ninkuma
Marshal
Posts: 66350
155
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the Struts forum.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!