struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elankath, Tarun (Cognizant)" <ETa...@blr.cognizant.com>
Subject RE: logic:present exception throwing
Date Thu, 25 Jul 2002 16:32:35 GMT
Could you show your jsp code ?

-----Original Message-----
From: Jeremy Haile [mailto:jhaile@fastmail.fm]
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
  jhaile@fastmail.fm

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

Mime
View raw message