Re: Using properties files other than ApplicationProperties

2006-07-11 Thread Monkeyden
Assuming you meant that you want to add errors in the Action, rather than the ActionForm, in your Action... 1. Create an empty ActionErrors object. Let's call it "errors". 2. Add messages to it as necessary (e.g. errors.add("propertyName" ,new ActionMessage("msg.key"));) 3. Then call the

Re: Using properties files other than ApplicationProperties

2006-07-11 Thread Laurie Harper
chamal desilva wrote: Hi, I want store all messages in a properties file called MessageProperties. I added this line to struts config file. How can I retireve values in properties file from my action classes in order to display them using tag. Use getResources(request, key), where 'key' is

Using properties files other than ApplicationProperties

2006-07-07 Thread chamal desilva
Hi, I want store all messages in a properties file called MessageProperties. I added this line to struts config file. How can I retireve values in properties file from my action classes in order to display them using tag. Thanking You, Chamal.