struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ng Chong Hin NCS <c...@ncs.com.sg>
Subject [struts-faces] <s:message> tag with module
Date Fri, 04 Jun 2004 14:53:34 GMT
Hi!

  Currently, I am in the midst of converting a working Struts application
(JSP/Tiles/Modules) to one that uses JSF, using the struts-faces integration
library.

  Having problems retrieving the messages from the
"message-module1.properties" resource (defined in the
struts-config-module1.xml).

  When attempting to use the message key like <s:message key="label1"/>, an
exception is reported:

----- Root Cause -----
java.lang.NullPointerException
            at
org.apache.jasper.runtime.BodyContentImpl.write(BodyContentImpl.java:195)
            at
javax.faces.webapp.UIComponentTag$1.write(UIComponentTag.java:946)
            at
com.sun.faces.renderkit.html_basic.HtmlResponseWriter.write(HtmlResponseWrit
er.java:519)
            at
org.apache.struts.faces.renderer.WriteRenderer.encodeEnd(Unknown Source)
            at
javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:713)
            at
javax.faces.webapp.UIComponentTag.encodeEnd(UIComponentTag.java:606)
            at
javax.faces.webapp.UIComponentTag.doEndTag(UIComponentTag.java:529)
            at
org.apache.jsp.Messages_jsp._jspx_meth_s_message_0(Messages_jsp.java:264)
            at
org.apache.jsp.Messages_jsp._jspx_meth_c_if_0(Messages_jsp.java:230)
            at org.apache.jsp.Messages_jsp._jspService(Messages_jsp.java:88)
            at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
10)
            at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
            at
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
            at
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.
java:684)
            at
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatch
er.java:575)
            at
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher
.java:498)
            at
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:8
22)
            at
org.apache.jasper.runtime.PageContextImpl.include(PageContextImpl.java:398)
            at
org.apache.struts.tiles.TilesUtilImpl.doInclude(TilesUtilImpl.java:137)
            at
org.apache.struts.tiles.TilesUtil.doInclude(TilesUtil.java:177)
            at
org.apache.struts.taglib.tiles.InsertTag.doInclude(InsertTag.java:756)

  Some notes:
    (1) I am running using Tomcat 4.1.20, J2SE 1.4.2_04, Struts 1.1, JSF RI
1.1 and struts-faces 0.5
    (2) Have already defined <s:loadMessages var="messages-module1"/>
    (3) It is working if I use the <bean:message> tag instead

  Any help or pointers would be appreciated.

  Thanks!

CH

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


Mime
View raw message