You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Morten <li...@kikobu.com> on 2003/10/12 01:09:46 UTC

needs resources!?

Hi. Running Tomcat 4.0.6 w. Struts 1.1. I have some JSP like the
following:

<logic:iterate collection="<%=dao.getItems()%>" id="bean" type="...">
   <bean:write name="bean" property="value"/><br/>
</logic:iterate>

When I try to execute this, I get:

javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
     at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:471)

...

Why? If I comment out the bean:write, it runs fine. I have no need
of configuring resources (and thus none are present in my struts config
file).

Any way I can fool the WriteTag to not go alooking for resource
bundles? :)

Morten




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


RE: needs resources!?

Posted by hari_s <ha...@indonesian-aerospace.com>.
You can try this..
<logic:iterate name="yourActionFormName" id="bean" type="...." >
<bean:write name="bean" property="value" />
</logic:iterate>

-----Original Message-----
From: news [mailto:news@sea.gmane.org] On Behalf Of Morten
Sent: Sunday, October 12, 2003 6:10 AM
To: struts-user@jakarta.apache.org
Subject: <bean:write .. /> needs resources!?


Hi. Running Tomcat 4.0.6 w. Struts 1.1. I have some JSP like the
following:

<logic:iterate collection="<%=dao.getItems()%>" id="bean" type="...">
   <bean:write name="bean" property="value"/><br/>
</logic:iterate>

When I try to execute this, I get:

javax.servlet.ServletException: Cannot find message resources under key 
org.apache.struts.action.MESSAGE
     at 
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContex
tImpl.java:471)

...

Why? If I comment out the bean:write, it runs fine. I have no need
of configuring resources (and thus none are present in my struts config
file).

Any way I can fool the WriteTag to not go alooking for resource
bundles? :)

Morten




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


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