You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by st...@softborg.com on 2004/01/01 11:04:28 UTC

logic:messagesPresent do not show messages

Hi, happy new year to all struts user. 

I use struts 1.1 and use the ActionMessages for displaying messages (like 'successfull 
updatet, and so on) 

In my ActionClass i have this:
[CODE]
ActionMessages messages = new ActionMessages();
messages.add("msg01", new ActionMessage("message.successfull.login"));

if (!messages.isEmpty()){
  saveMessages(messages, request);
}
[/CODE]

In my JSP-Page i have this:
[CODE]
  <logic:messagesPresent message="true">
      <html:messages id="msg" message="true">
        <bean:write name="msg" />   
      </html:messages>
   </logic:messagesPresent>
[/CODE]

When run this code, i received this error "no bean found "msg" on any scope". (At the line 
of (bean:write)

Has somebody any idea whats wrong here ? 
If you have some example code, this will be great.

Best regards 
Stefan



---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org