>Why don't you change the bean so it doesn't return a null result? You can also wrap the whole thing in a logic:notEmpty tag, so that the equal tag will not be evaulated if your property is null.
> > Regards, > > Richard > > 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.j a > >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:[EMAIL PROTECTED]> > >For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>