I need to display messages using the html:messages tag in my
JSP. The problem here is that the messages are not getting displayed due to some problem. I have coded the ActionMessages Object.add() directly in the Action class itself and not put it inside any error condition like it is normally done in the ActionForm's validate method... Inspite of just trying to display a message right outside, as soon as the Action Class is mapped into, there is no message being displayed... Someone plz advice on this... Any help will be appreciated and thanks in advance... The config file is alright... Will just put in the code snippets of the jsp and the Action Class..
This is from the Action Class :
ActionMessages message2 = new ActionMessages();
message2.add("This is a
test message", new ActionMessage("testmessages.try","This is to test the ActionMessages Class"));
This is from the jsp :
<li>
<html:messages id="message">
<bean:write name="message" />
</html:messages>
</li>