RE: get message from MessageResources in Action Class

2006-05-18 Thread Gary Feidt
Or if you just need a String value from the MessageResources you can use: String sValue = getResources(request).getMessage(locale, "key.value"); Gary >>> [EMAIL PROTECTED] 5/18/2006 9:11:01 AM >>> You would have to be more specific in your question. Do you mean ActionMessage or just the message

RE: get message from MessageResources in Action Class

2006-05-18 Thread Chaudhary, Harsh
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