struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bharat Nagwani <bhnag...@cisco.com>
Subject Re: Need Urgent help
Date Thu, 13 Jun 2002 21:12:26 GMT
use logic:present as a wrapper

At 08:10 PM 6/25/2002 +0530, you wrote:
>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