You would have to be more specific in your question. Do you mean ActionMessage or just the message in your properties file etc. You might want to check out the ActionMessages and the ActionMessage class. Also, Validator and ValidatorAction classes in Commons Validator.
Here's a really simple way to access the ActionMessages object from Java code. ActionMessages errors = ((YourForm)form).validate(mapping, request); if(errors != null && errors.isEmpty()) { //String temp = (String)request.getAttribute("toPageName"); return mapping.findForward("success"); } else { saveErrors(request, errors); return mapping.findForward("failure"); } Harsh. -----Original Message----- From: fea jabi [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 8:57 AM To: user@struts.apache.org Subject: get message from MessageResources in Action Class Using struts 1.2.7 How to get the message from MessageResource in the Action Class? Thanks. _________________________________________________________________ FREE pop-up blocking with the new MSN Toolbar - get it now! http://toolbar.msn.click-url.com/go/onm00200415ave/direct/01/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]