One cause of this is if it can't find the message key in your application
resources and you have your message resources configured with null="true".
If you change your message resources config to null="false" in your
struts-config.xml....
<message-resources null="false"
parameter="myPackage.ApplicationResources"/>
Then if it can't find the message for some reason, you should get the
following displayed.....
<h3><font color="red"></font>Messages:</h3>
<ul>
<li> ???en_US.error.detail????</li>
</ul>
Another cause...do you have the taglib declaration for the html tags at the
top of your page?
Anyway, what you have looks good, just a matter of debugging which bits of
struts are not configured properly.
Nialll
----- Original Message -----
From: "Michael Oliver" <[EMAIL PROTECTED]>
Sent: Wednesday, April 06, 2005 12:25 AM
> I tried the example from the HelpTagsErrorsAndMessages.html in my jsp
> near the top of the body.
>
> <logic:messagesPresent>
>
> <h3><font color="red"></font>Messages:</h3>
> <ul>
> <html:messages id="msg">
> <li><bean:write name="msg" /></li>
> </html:messages>
> </ul>
>
> </logic:messagesPresent>
>
> The action that forwards to that jsp has:
>
> ActionErrors errors = new ActionErrors();
> errors.add(ActionErrors.GLOBAL_MESSAGE, new
> ActionMessage("error.detail",retStatus));
> this.saveErrors(request, errors);
>
> where retStatus is a string.
>
> And in my ApplicationResources.properties I have
>
> error.detail={0}
>
> But when I run it I get
>
> org.apache.jasper.JasperException: Cannot find bean msg in any scope
> ...
> ----- Root Cause -----
> javax.servlet.ServletException: Cannot find bean msg in any scope
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]