Win a copy of Functional Reactive Programming this week in the Other Languages 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