Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Adding an error to the ActionError in struts

Archana Annamaneni
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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));

He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!