[opencms-dev] how to include a link content ??
Apostoly Guillaume
ApostolyG at mail.europcar.com
Fri Jul 25 17:10:02 CEST 2003
I forgot the error :
org.apache.jasper.JasperException: Resource loader error in file
'/intraneteuropcar/jsp/contentlist.jsp'
Root cause:
org.apache.jasper.JasperException: FlexDispatcher: CmsResourceLoader
interface not implemented for cms resource
/intraneteuropcar/General/Editos/PhotoNum.html
java.lang.ClassCastException: com.opencms.launcher.CmsLinkLauncher
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
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(Compiled
Code))
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
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
cher.java(Compiled Code))
at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
cher.java(Compiled Code))
at
com.opencms.flex.jsp.CmsJspTagInclude.includeTagAction(CmsJspTagInclude.java
:370)
at
com.opencms.flex.jsp.CmsJspTagInclude.doEndTag(CmsJspTagInclude.java:262)
at org.apache.jsp.index_jsp_jsp._jspService(index_jsp_jsp.java:350)
at
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code))
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(Compiled
Code))
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
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
cher.java(Compiled Code))
at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
cher.java(Compiled Code))
at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)
at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)
at com.opencms.core.OpenCms.showResource(OpenCms.java:956)
at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code))
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java(Compiled Code))
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java(Compiled Code))
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va(Compiled Code))
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java(Compiled Code))
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va(Compiled Code))
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java(Compiled Code))
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java(Compile
d Code))
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Com
piled Code))
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java(Compiled Code))
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java(Compiled Code))
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java(Compiled Code))
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Com
piled Code))
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java(Compiled Code))
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
(Compiled Code))
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java(Compiled Code))
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown Source)
at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:568)
--------------- End of root cause.
at
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:2
54)
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(Compiled
Code))
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
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
cher.java(Compiled Code))
at com.opencms.flex.CmsJspLoader.service(CmsJspLoader.java:955)
at
com.opencms.flex.cache.CmsFlexRequestDispatcher.include(CmsFlexRequestDispat
cher.java(Compiled Code))
at com.opencms.flex.CmsJspLoader.load(CmsJspLoader.java:567)
at com.opencms.flex.CmsJspLoader.initlaunch(CmsJspLoader.java:235)
at com.opencms.core.OpenCms.showResource(OpenCms.java:956)
at
com.opencms.core.OpenCmsHttpServlet.doGet(OpenCmsHttpServlet.java:310)
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code))
at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled
Code))
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java(Compiled Code))
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java(Compiled Code))
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va(Compiled Code))
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java(Compiled Code))
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va(Compiled Code))
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java(Compiled Code))
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java(Compile
d Code))
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Com
piled Code))
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java(Compiled Code))
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java(Compiled Code))
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java(Compiled Code))
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Com
piled Code))
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java(Compiled Code))
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
(Compiled Code))
at
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invok
eNext(StandardPipeline.java(Compiled Code))
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compi
led Code))
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled
Code))
at
org.apache.catalina.connector.warp.WarpRequestHandler.handle(Unknown Source)
at org.apache.catalina.connector.warp.WarpConnection.run(Unknown
Source)
at java.lang.Thread.run(Thread.java:568)
> -----Message d'origine-----
> De: Apostoly Guillaume
> Date: vendredi 25 juillet 2003 16:39
> À: opencms-dev at opencms.org
> Objet: [opencms-dev] how to include a link content ??
>
>
> Hi all,
>
> I've developed a peace of JSP that display all documents (to
> be shown in
> navigation from a directory) by using cms.include.
> This is basically the code.
>
> com.opencms.flex.jsp.CmsJspNavElement rootNe
> while (rootI.hasNext())
> {
> rootNe = (com.opencms.flex.jsp.CmsJspNavElement)rootI.next();
> cms.include(rootNe.getResourceName());
> }
>
> This works, but if i put in my folder a link to another
> document, instead of
> a page, this doesn't work anymore.
> So how can I :
> - test if the current "rootNe" is a link or a page ?
> - gain access to the linked page to include it ?
>
> Thanks by advance for your help,
>
> Regards,
>
> Guillaume.
>
> _______________________________________
> Guillaume APOSTOLY
> Business-Analyst EIS-BSD
> Tél: +33 (0)1.30.44.95.22
> Fax: +33 (0)1.30.44.98.08
> ApostolyG at mail.europcar.com <mailto:ApostolyG at mail.europcar.com>
> _______________________________________
>
>
>
>
>
>
>
> _______________________________________________
> This mail is send to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list,
> please visit
> http://mail.opencms.org/mailman/listinfo/opencms-dev
>
More information about the opencms-dev
mailing list