This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Struts and the fly likes Adding an error to the ActionError in struts Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Adding an error to the ActionError in struts" Watch "Adding an error to the ActionError in struts" New topic
Author

Adding an error to the ActionError in struts

Archana Annamaneni
Ranch Hand

Joined: Jan 29, 2003
Posts: 147
In my application I am trying to add an error message to an ActionError.
That message is in a String varibale , how do i add that,if it is an hardcoded message it works fine.

here is my code

String errormessage = (String)detailids.get(1);
errors.add(ActionErrors.GLOBAL_ERROR,new ActionError("100",errormessage));
saveErrors(request,errors);

Thanks
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Adding an error to the ActionError in struts
 
Similar Threads
jsp access exception
Sending a Soap error response to Client
How to show Information Dialog?
Getting values from properties in validate-using multiple message-resources in struts
Exception object catching multiple exceptions in one time?