<p>that value I use for __element? </p><p> </p><p><cms:include page="commons/banners_head.html"><br />    <cms:param name="__element" value="???" /><br /></cms:include>         <br /></p><p>Thanks </p><p>--<br />Jordi Marquès Ferré (jordi.marques@iigov.org)<br /><br /></p><div id="rep" style="padding-left: 10px"><div id="repRep" style="border-left: 2px solid red; padding-left: 10px">                                                                            <div dir="ltr" align="left"><span class="667341809-27092006"><font face="Arial" size="2" color="#0000ff">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"></span> </div> <div dir="ltr" align="left"><span class="667341809-27092006"><font face="Arial" size="2" color="#0000ff">Jon</font></span></div><br /> <div dir="ltr" class="OutlookMessageHeader" align="left"> <hr /> <font face="Tahoma" size="2"><strong>From:</strong> opencms-dev-bounces@opencms.org  [mailto:opencms-dev-bounces@opencms.org] <strong>On Behalf Of </strong>Jordi  Marquès<br /><strong>Sent:</strong> 27 September 2006 10:11<br /><strong>To:</strong> The OpenCms  mailing list<br /><strong>Subject:</strong> [opencms-dev] Displaying the  content<br /></font><br /></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></div></div>