This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts Validation

 
Raj Chennai
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai

Iam trying to return more than one error message from my custom validation, but iam unable to do it. I would appreciate if some one can help me.

String errorMsgStr[] ; // this Str array has some error messages

for(int i=0; i<errorMsgStr.length;i++){

errors.add("Test"+i,new ActionMessage(errorMsgStr[i].toString(),false));

}

I am getting the error messages on the page but some Junk is added to the message. I think iam doing some thing wrong.
[ December 28, 2005: Message edited by: Raj Chennai ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic