struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pratima Aiyagari <a_prat...@yahoo.com>
Subject Re: Nested tags : trying to get recursion to work
Date Thu, 03 Jul 2003 01:43:16 GMT
Never mind .. I got it to work.

- P

--- Pratima Aiyagari <a_pratima@yahoo.com> wrote:
> I am trying to get recursive inclusion to work with
> the nested tags.
> 
> Here is what I'm trying to do: I have a directory,
> which might have a bunch of files or more
> directories
> inside of it. Just like any regular directory
> structure. And I need to display all the directories
> and the files inside each. 
> 
> In main.jsp: 
> ------------
> <nested:nest property="directory">
>     <jsp:include page="recursiveDirectories.jsp" />
> </nested:nest>
> 
> There is a bean in the request whose getter
> [getDirectory] method returns a directory. 
> 
> So, this should be fine. 
> 
> In recursiveDirectories.jsp
> --------------------------------
> <nested:root>
> readflag=[<nested:write property="readFlag"/>]
> </nested:root>
> 
> The directory bean which is now passed to
> nested:root
> has a getReadFlag method. So this should work ?
> 
> Or not ..  :-/
> 
> I get a strange exception. It says "Cannot find bean
> <blank> in any scope"
> 
> Please see end of this post for the exact exception.
> It says it can't find some bean, but no indication
> of
> what that might be .. 
> 
> Any help appreciated!
> 
> Pratima
> 
> =======================================
> org.apache.jasper.JasperException: Cannot find bean 
> in any scope
> 	at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:248)
> 	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:853)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
> 	at
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)
> 	at
>
org.apache.jsp.queryInvReport_jsp._jspx_meth_nested_nest_0(queryInvReport_jsp.java:1470)
> 	at
>
org.apache.jsp.queryInvReport_jsp._jspService(queryInvReport_jsp.java:735)
> 	at
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
> 	at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
> 	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:853)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
> 	at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
> 	at
>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
> 	at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
> 	at
>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> 	at
>
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> 	at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> 	at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> 	at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> 	at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 	at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> 	at
>
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
> 	at
>
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
> 	at
>
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)
> 	at
>
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590)
> 	at
>
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707)
> 	at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
> 	at java.lang.Thread.run(Thread.java:566)
> 
> 
> root cause 
> 
> javax.servlet.ServletException: Cannot find bean  in
> any scope
> 	at
>
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:530)
> 	at
>
org.apache.jsp.recursiveDirectories_jsp._jspService(recursiveDirectories_jsp.java:63)
> 	at
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
> 	at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
> 	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:853)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:575)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:498)
> 	at
>
org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:822)
> 	at
>
org.apache.jsp.queryInvReport_jsp._jspx_meth_nested_nest_0(queryInvReport_jsp.java:1470)
> 	at
>
org.apache.jsp.queryInvReport_jsp._jspService(queryInvReport_jsp.java:735)
> 	at
>
org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137)
> 	at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
>
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)
> 	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:853)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
> 	at
>
org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:356)
> 	at
>
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1069)
> 	at
>
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:455)
> 	at
>
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:279)
> 	at
>
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
> 	at
>
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
> 	at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
> 	at
>
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
> 	at
>
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
> 	at
>
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:260)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2415)
> 	at
>
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 	at
>
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:172)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:641)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
> 	at
>
org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.invokeNext(StandardPipeline.java:643)
> 	at
>
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:480)
> 	at
>
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
> 	at
>
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
> 	at
>
org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:261)
> 	at
>
org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:360)
> 	at
>
org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:632)
> 	at
>
org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:590)
> 	at
>
org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707)
> 	at
>
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
> 	at java.lang.Thread.run(Thread.java:566)
> 
> ========================================
> 
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail:
> struts-user-help@jakarta.apache.org
> 


__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org


Mime
View raw message