Hi,
Can anyone explain what should be used as the id value in the <html:messages
id="..." .../> tag? Where to define it? I read the doc
(http://struts.apache.org/1.3.10/struts-taglib/tlddoc/html/messages.html)
but can't figure it out.
In Action class,
ActionMessages messages = new ActionMessages();
messages.add(ActionMessages.GLOBAL_MESSAGE, new
ActionMessage("error.success"));
// error.success is a property key,
already defined
addMessages(request, messages);
In the view, I used this code to try to render the message.
<html:messages id="..." message="true" >
<bean:write name="msg" />
</html:messages>
What should be used as the id value?
Thanks.
--
View this message in context:
http://old.nabble.com/struts-1%3A-id-attribute-in-%3Chtml%3Amessages...-%3E-tag-tp27442814p27442814.html
Sent from the Struts - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]