Subject: Re: html taglib yields "Cannot find message resources under key 
org.apache.struts.action.MESSAGE"
From: Bill Wohler <[EMAIL PROTECTED]>
 ===
Bill Wohler <[EMAIL PROTECTED]> writes:
>   I've got the following complicated page:
> 
>     <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
>     <html:img src="http://www.newt.com/images/anybrowser4b.png"; />
> 
>   However, this complexity comes at a price:
>   
>     javax.servlet.ServletException: Cannot find message resources under key 
>org.apache.struts.action.MESSAGE
> 
  
  Well, I discovered the problem. I found I had to add a
  message-resources tag to struts-config.xml:

    <struts-config>
      <message-resources parameter="bogus" />
      ...
    </struts-config>

  This seems like a bug to me. Not specifying a message-resources tag
  should be *better* than specifying one with a bogus resource file.

-- 
Bill Wohler <[EMAIL PROTECTED]>  http://www.newt.com/wohler/  GnuPG ID:610BD9AD
Maintainer of comp.mail.mh FAQ and mh-e. Vote Libertarian!
If you're passed on the right, you're in the wrong lane.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to