Struts 1 - problem in showing ActionMessages through a JSP page
Posted
by Yatendra Goel
on Stack Overflow
See other posts from Stack Overflow
or by Yatendra Goel
Published on 2010-03-08T12:36:25Z
Indexed on
2010/06/15
11:02 UTC
Read the original article
Hit count: 198
I am using Struts 1.3.10
. I am trying to display ActionMessage
and ActionError
set by Action
class through a JSP
page.
The problem is that the ActionError
s are displaying well but ActionMessage
s are not displaying. When I debug the application, I found that the messages (reference variable of ActionMessages)
contains messages. I also saved those messages through saveMessages(request, messages)
method of Action
class.
So, I think that the problem is in the JSP
code through which I am trying to display those messages. The JSP
code is as follows:
<logic:messagesPresent>
<ul id="messsages">
<html:messages id="msg" message="true">
<li><bean:write name="msg"/> </li>
</html:messages>
</ul>
</logic:messagesPresent>
© Stack Overflow or respective owner