struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leonardo Maciel" <LMac...@Scient.com>
Subject RE: Need Urgent help
Date Thu, 13 Jun 2002 14:50:27 GMT

<logic:present name="beaninstance" property="method" >
	<logic:equal name="beaninstance" property="method" value="A" >
	 DO SOME.
	</logic:equal>
</logic:present>



-----Original Message-----
From: Yaman Kumar [mailto:yamank@nous.soft.net]
Sent: Tuesday, June 25, 2002 10:40 AM
To: Struts Users Mailing List
Subject: Need Urgent help


Hi,
I have a problem in using logic:equal tag given below
<logic:equal name="beaninstance" property="method" value="A" >
 DO SOME.
</logic:equal>
This code is working fine when it is not null. But when ever it {
beaninstance.getMethod() }
is becoming null, page is getting exception as below...

javax.servlet.jsp.JspException: Cannot compare null variable to value A
	at org.apache.struts.taglib.template.GetTag.doStartTag(GetTag.java:193)
	at org.apache.jsp.HNCTemplate$jsp._jspService(HNCTemplate$jsp.java:317)
	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
	at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:202)
	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:382)

Can any one help me out in this, I tried to break this in logic:equal source
file..

TIA
rayaku


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

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