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
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
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.
3 matches
Mail list logo