struts dynamic error message handling

Posted by sarah on Stack Overflow See other posts from Stack Overflow or by sarah
Published on 2010-06-09T12:44:27Z Indexed on 2010/06/09 12:52 UTC
Read the original article Hit count: 138

Filed under:
|

Hi ,

I want to display a dynamic error message ,i am having the code as

ActionMessages errors = new ActionMessages();
errors.add(ActionMessages.GLOBAL_MESSAGE, new ActionMessage("error.plan.foundForUser"));
saveErrors(request, errors);
error.plan.foundForUser={1} Not Found

I want to replace 1 with a dynamic value,how to do so ?

© Stack Overflow or respective owner

Related posts about java

Related posts about struts