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]>

This e-mail and any files transmitted with it are for the sole use of the intended 
recipient(s) and may contain confidential and privileged information.
If you are not the intended recipient, please contact the sender by reply e-mail and 
destroy all copies of the original message. 
Any unauthorised review, use, disclosure, dissemination, forwarding, printing or 
copying of this email or any action taken in reliance on this e-mail is strictly 
prohibited and may be unlawful.

                Visit us at http://www.cognizant.com


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

Reply via email to