Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with ActionMessages

Status
Not open for further replies.

pajarokillo

Programmer
May 3, 2004
30
ES
hi, i don't get that this code work fine

CODE
ActionMessages messages = new ActionMessages();
messages.add("statusMessage", new ActionMessage("message.key"));
saveMessages(request.getSession(), messages);

where "message.key" is one of the property key in the Application Resource file.


In the JSP

CODE
<logic:messagesPresent message="true">
<html:messages id="message" message="true" property="statusMessage">
<bean:write name="message"/>
</html:messages>
</logic:messagesPresent>

With this code, it don't display nothing, but if i delete the attribute 'property' of the <html:messages> tag, it work fine and it display the message.

Which is the explication?

Thanks
 
I don't see any reason why it doesn't work with the 'property' attribute. Only thing I can think of is make sure there is no typo in your propety value.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top