My JSP is thousands of lines long (mostly in seperate include files) and I am not sure 
what to send to make this error repeatable (and how much my company would be ok with 
me sending out)  However, can I ask a more narrow question?

>From the stack trace below:


javax.servlet.jsp.JspException: Cannot find bean lastVitalSigns in scope null
at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:493)
at org.apache.struts.taglib.logic.PresentTag.condition(PresentTag.java:138)
at org.apache.struts.taglib.logic.PresentTag.condition(PresentTag.java:99)
at 
org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagBase.java:218)


If I look at PresentTag.java, line 138, there is a try/catch that should catch a JSP 
exception.  So, why does the JspException ever make it back up to the webpage?  
Shouldn't PresentTag.java catch the Exception on line 138?  That is what is bugging me 
the most.  This error shouldn't happen simply because the JspException thrown should 
be caught and ignored in PresentTag.java.  Why would this not happen?

Jeremy


On Thu, 25 Jul 2002 22:02:35 +0530, "Elankath, Tarun (Cognizant)" 
<[EMAIL PROTECTED]> said:
> Could you show your jsp code ?
> 
> -----Original Message-----
> From: Jeremy Haile [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, July 25, 2002 9:19 PM
> To: Struts
> Subject: logic:present exception throwing
> 
> 
> I am making heavy use of <logic:present> tags in my page. 
> Unfortunately, I have a major beef with them.  I am receiving this
> error:
> 
> Struts Error: Cannot find bean lastVitalSigns in scope null
> Stack Trace:
> 
> javax.servlet.jsp.JspException: Cannot find bean lastVitalSigns in
> scope null
>       at org.apache.struts.util.RequestUtils.lookup(RequestUtils.java:493)
>       at
> org.apache.struts.taglib.logic.PresentTag.condition(PresentTag.java:138)
>       at
> org.apache.struts.taglib.logic.PresentTag.condition(PresentTag.java:99)
>       at
> org.apache.struts.taglib.logic.ConditionalTagBase.doStartTag(ConditionalTagB
> ase.java:218)
>       at
> jrun__reports__includes___vitalsigns2ejsp21._jspService(jrun__reports__inclu
> des___vitalsigns2ejsp21.java:396)
>       at
> allaire.jrun.jsp.HttpJSPServlet.service(../jsp/HttpJSPServlet.java:40)
>       at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
>       at
> allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
>       at
> allaire.jrun.servlet.JRunNamedDispatcher.forward(../servlet/JRunNamedDispatc
> her.java:34)
>       at allaire.jrun.jsp.JSPServlet.service(../jsp/JSPServlet.java:175)
>       at allaire.jrun.servlet.JRunSE.service(../servlet/JRunSE.java:1013)
>       at
> allaire.jrun.servlet.JRunSE.runServlet(../servlet/JRunSE.java:925)
> 
> 
> As you can see, this is going through the PresentTag class and into
> RequestUtils.  OF COURSE it doesn't exist.  The purpose of me using
> this tag is because I have conditional content that will display
> depending upon whether or not the bean exists.  Why would it throw this
> exception instead of just NOT displaying the content of the tag?  Any
> ideas or other ways I can do this?
> 
> Thanks,
> Jeremy
> -- 
>   Jeremy Haile
>   [EMAIL PROTECTED]
> 
> --
> To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>

-- 
  Jeremy Haile
  [EMAIL PROTECTED]

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to