NullPointer after upgrading to WW2.2
Matt Dowell <[email protected]> Thu, 08 Sep 2005 16:25:50 CDT
| Newsgroups | gmane.comp.web.sitemesh.general,gmane.comp.lang.pnuts.user |
|---|---|
| Message-ID | <30117754.1126214836694.JavaMail.os-j2ee@opensymphony01.contegix.com> |
[b]I upgraded my libs to WebWork 2.2 and now the BodyTag throws a NPE on line 26:[/b]
getPage().writeBody(getOut());
[b]I think my setup is fairly simple, here's my sitemesh.xml file:[/b]
<sitemesh>
<property name="decorators-file" value="/WEB-INF/decorators.xml"/>
<excludes file="${decorators-file}"/>
<page-parsers>
<parser content-type="text/html" class="com.opensymphony.module.sitemesh.parser.FastPageParser"/>
</page-parsers>
<decorator-mappers>
<mapper class="com.opensymphony.module.sitemesh.mapper.PageDecoratorMapper">
<param name="property.1" value="meta.decorator"/>
<param name="property.2" value="decorator"/>
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.FrameSetDecoratorMapper">
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.AgentDecoratorMapper">
<param name="match.MSIE" value="ie"/>
<param name="match.Mozilla [" value="ns"/>
<param name="match.Opera" value="opera"/>
<param name="match.Lynx" value="lynx"/>
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.PrintableDecoratorMapper">
<param name="decorator" value="printable"/>
<param name="parameter.name" value="printable"/>
<param name="parameter.value" value="true"/>
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.RobotDecoratorMapper">
<param name="decorator" value="robot"/>
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.ParameterDecoratorMapper">
<param name="decorator.parameter" value="decorator"/>
<param name="parameter.name" value="confirm"/>
<param name="parameter.value" value="true"/>
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.FileDecoratorMapper">
</mapper>
<mapper class="com.opensymphony.module.sitemesh.mapper.ConfigDecoratorMapper">
<param name="config" value="${decorators-file}"/>
</mapper>
</decorator-mappers>
</sitemesh>
[b]Here is my decorators.xml file:[/b]
<decorators defaultdir="/decorators">
<decorator name="main" page="group/group_main.jsp">
<pattern>/*.jsp</pattern>
<pattern>/*.action</pattern>
<pattern>*.jsp</pattern>
<pattern>*.action</pattern>
</decorator>
<decorator name="main_login" page="group/group_login.jsp">
<pattern>listGroups.action</pattern>
<pattern>loginGroup.action*</pattern>
<pattern>login.jsp</pattern>
...
</decorator>
</decorators>
[b]And here is my body.jsp decorator file:[/b]
<%@ taglib prefix="ww" uri="webwork" %>
<%@ taglib uri="sitemesh-decorator" prefix="decorator" %>
<td colspan="2" width="100%" bgcolor="#D3D3D3" align="center" class="body_text">
<span class="body_text">
<!-- MAIN TEXT -->
<decorator:body />
</span>
</td>
[b]Can someone point me in a direction as to why getPage() would return null?[/b]
Matt
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.opensymphony.com/thread.jspa?threadID=6587&messageID=14716#14716
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]