You have to initialize your CmsJspBean with <span style="font-weight: bold;">pageContext, request and response.</span><br>
Use the <span style="font-weight: bold;">init</span>() method.<br>
<br>
see <a href="http://synyx.de/api/opencms6.0.0/org/opencms/jsp/CmsJspBean.html#init%28PageContext,%20HttpServletRequest,%20HttpServletResponse%29">http://synyx.de/api/opencms6.0.0/org/opencms/jsp/CmsJspBean.html#init(PageContext, HttpServletRequest, HttpServletResponse)
</a><br>
<br>
<br>
hth<br><br><div><span class="gmail_quote">25 Oct 2005 07:30:57 -0000, Syed Mujahid Basha <<a href="mailto:mujahid_basha@rediffmail.com">mujahid_basha@rediffmail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<p>
  <br>
Hi All,<br>
<br>
I am trying to build a BreadCrumb portion for my webpages....<br>
<br>
I have created a breadcrumb.jsp in which the breadcrumb code goes and just included this file in my template.<br>
<br>
**************<breadcrumb.jsp   start>*************<br>
<br>
<%@page buffer="none" session="false" import="org.opencms.jsp.*, org.opencms.file.*, java.util.*" %><%<br>
<br>
// initialize action element to access the API<br>
CmsJspNavBuilder cms = new CmsJspNavBuilder(new CmsJspBean().getCmsObject());<br>
List li = cms.getNavigationBreadCrumb();  //getting error in this line<br>
%><%= li %><br>
<br>
**************<breadcrumb.jsp   end>*************<br>
<br>
**************< The Error starts >***************<br>
java.lang.NullPointerException<br>
     at org.opencms.jsp.CmsJspNavBuilder.init(CmsJspNavBuilder.java:735)<br>
     at org.opencms.jsp.CmsJspNavBuilder.<init>(CmsJspNavBuilder.java:146)<br>
     at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_hello_www.elements.breadcrumb_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_hello_www.elements.breadcrumb_jsp:46)<br>
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)<br>
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br>
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)<br>
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)<br>
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)<br>
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br>
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br>
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br>
     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)<br>
     at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)<br>
     at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)<br>
     at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:193)<br>
     at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:171)<br>
     at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:402)<br>
     at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)<br>
     at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:175)<br>
     at org.opencms.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java:215)<br>
     at org.opencms.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:346)<br>
     at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_habibcms_www.templates.habibcmstemplate_jsp._jspx_meth_cms_include_2(org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_habibcms_www.templates.habibcmstemplate_jsp:853
)<br>
     at org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_habibcms_www.templates.habibcmstemplate_jsp._jspService(org.apache.jsp.WEB_002dINF.jsp.offline.system.modules.com_habibcms_www.templates.habibcmstemplate_jsp:244
)<br>
     at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)<br>
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br>
     at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)<br>
     at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)<br>
     at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)<br>
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br>
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br>
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br>
     at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)<br>
     at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:574)<br>
     at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)<br>
     at org.opencms.flex.CmsFlexRequestDispatcher.includeExternal(CmsFlexRequestDispatcher.java:193)<br>
     at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:171)<br>
     at org.opencms.loader.CmsJspLoader.service(CmsJspLoader.java:402)<br>
     at org.opencms.flex.CmsFlexRequestDispatcher.includeInternalWithCache(CmsFlexRequestDispatcher.java:417)<br>
     at org.opencms.flex.CmsFlexRequestDispatcher.include(CmsFlexRequestDispatcher.java:175)<br>
     at org.opencms.loader.CmsJspLoader.dispatchJsp(CmsJspLoader.java:434)<br>
     at org.opencms.loader.CmsJspLoader.load(CmsJspLoader.java:381)<br>
     at org.opencms.loader.CmsXmlPageLoader.load(CmsXmlPageLoader.java:213)<br>
     at org.opencms.loader.CmsResourceManager.loadResource(CmsResourceManager.java:711)<br>
     at org.opencms.main.OpenCmsCore.showResource(OpenCmsCore.java:1302)<br>
     at org.opencms.main.OpenCmsServlet.doGet(OpenCmsServlet.java:136)<br>
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)<br>
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br>
     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br>
     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br>
     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br>
     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)<br>
     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)<br>
     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)<br>
     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)<br>
     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)<br>
     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)<br>
     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)<br>
     at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)<br>
     at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)<br>
     at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)<br>
     at java.lang.Thread.run(Thread.java:595)<br>
<br>
**************< The Error END >*************************<br>
<br>
Any one please guide how to create a bread crumb in my web pages...<br>
<br>
<br>

</p>


Regards,
<br><span class="sg">
Syed Mujahid Basha,
<br>
GCI Solutions Pvt. Limited,
<br>
<a href="http://www.g-c-i.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">www.g-c-i.com</a>,
<br>
Bangalore.
<br>
<br><br>
<a href="http://adworks.rediff.com/cgi-bin/AdWorks/sigclick.cgi/www.rediff.com/signature-home.htm/1507191490@Middle5?PARTNER=3" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"><img src="http://adworks.rediff.com/cgi-bin/AdWorks/sigimpress.cgi/www.rediff.com/signature-home.htm/1963059423@Middle5?OAS_query=null&PARTNER=3" border="0" hspace="0" vspace="0">
</a>

</span><br><br><br>_______________________________________________<br>This mail is send to you from the opencms-dev mailing list<br>To change your list options, or to unsubscribe from the list, please visit<br><a onclick="return top.js.OpenExtLink(window,event,this)" href="http://mail.opencms.org/mailman/listinfo/opencms-dev" target="_blank">
http://mail.opencms.org/mailman/listinfo/opencms-dev</a><br><br></blockquote></div><br>