struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Richard Yee <>
Subject Re: Need Urgent help
Date Fri, 14 Jun 2002 16:53:15 GMT
What do you expect the tag to do if the method returns a null value? The 
logic tag documentation specifically states that the property cannot be 
null. Why don't you change the bean so it doesn't return a null result?



At 08:10 PM 6/25/2002 +0530, you wrote:
>I have a problem in using logic:equal tag given below
><logic:equal name="beaninstance" property="method" value="A" >
>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(
>         at 
> org.apache.jsp.HNCTemplate$jsp._jspService(HNCTemplate$
>         at 
> org.apache.jasper.runtime.HttpJspBase.service(
>         at javax.servlet.http.HttpServlet.service(
>         at
>         at 
> org.apache.jasper.servlet.JspServlet.serviceJspFile(
>Can any one help me out in this, I tried to break this in logic:equal source
>To unsubscribe, e-mail:   <>
>For additional commands, e-mail: <>

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message