File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Struts Validation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts Validation" Watch "Struts Validation" New topic
Author

Struts Validation

Raj Chennai
Greenhorn

Joined: Dec 28, 2005
Posts: 2
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 ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts Validation
 
Similar Threads
Redisplay form data and error messages in JSP after validation
Avoiding param in URL when action-redirect....
Struts2 Validation problem
Choosing frameworks etc...
Database Message Resources