struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Akolkar <rahul.akol...@gmail.com>
Subject Re: <logic:match> barfs if it's parameter is null
Date Tue, 08 Nov 2005 04:33:44 GMT
On 11/7/05, Mon Cab <futon33@yahoo.com> wrote:
> Hi all...
>
> I.e any way of using the <logic:match> tag less
> strictly, so that <logic:match parameter="var"
> value="bla"> will not cause an exception if var is
> null.  At the moment I am getting:
<snip/>

Which is as advertised here [
http://struts.apache.org/struts-taglib/tagreference-struts-logic.html
]. Wrap in <logic:present> or use JSTL <c:if> with JSTL fn:substring
in the test.

-Rahul


>
>
> javax.servlet.ServletException: Cannot compare null
> variable to value signup
>
> org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
<snap/>

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


Mime
View raw message