<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2963" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=667341809-27092006><FONT face=Arial
color=#0000ff size=2>Don't know if this helps, but from a quick scan through the
source code, this seems to imply that the request parameter named
I_CmsResourceLoader.PARAMETER_ELEMENT (i.e. "__element") is not defined, and
hence the creation of the corresponding Xpath expression
fails.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=667341809-27092006><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=667341809-27092006><FONT face=Arial
color=#0000ff size=2>Jon</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> opencms-dev-bounces@opencms.org
[mailto:opencms-dev-bounces@opencms.org] <B>On Behalf Of </B>Jordi
Marquès<BR><B>Sent:</B> 27 September 2006 10:11<BR><B>To:</B> The OpenCms
mailing list<BR><B>Subject:</B> [opencms-dev] Displaying the
content<BR></FONT><BR></DIV>
<DIV></DIV>
<P>Hi all,<BR><BR>I am trying to display the content of a News item in a JSP in
the same<BR>directory, but keep getting an NPE. The code below shows a
minimal<BR>example:<BR><BR>------- Display_News.jsp -----------------<BR><%@
taglib prefix="cms" uri="<A
href="http://www.opencms.org/taglib/cms%22">http://www.opencms.org/taglib/cms"</A>
%><BR><% org.opencms.jsp.CmsJspActionElement cms =
new<BR>org.opencms.jsp.CmsJspActionElement(pageContext, request, response);
%><BR><BR><cms:include page="New_News.html"
/><BR>-------------------------------------------<BR><BR>The exception
begins:<BR><BR>java.lang.NullPointerException<BR>at
org.opencms.xml.CmsXmlUtils.createXpath(CmsXmlUtils.java:144)<BR>at<BR>org.opencms.xml.A_CmsXmlDocument.getLocales(A_CmsXmlDocument.java:255)<BR>at<BR>org.opencms.loader.A_CmsXmlDocumentLoader.dumpAsString(A_CmsXmlDocumentL<BR>oader.java:118)<BR>at<BR>org.opencms.loader.A_CmsXmlDocumentLoader.service(A_CmsXmlDocumentLoader<BR>.java:238)<BR><BR><BR>Does
anyone have any ideas on what I am doing wrong here? (What I am<BR>actually
trying to do is iterate over the news items in the folder and<BR>display the
teaser text. The iteration is working fine, but I cannot get<BR>the content of
the news item itself...)<BR><BR>Thanks, </P>
<P>--<BR>Jordi Marquès Ferré</P></BODY></HTML>