struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Affan Qureshi" <quere...@etilize.com>
Subject Basic <logic:equals> question
Date Thu, 31 Oct 2002 12:20:11 GMT
A rather basic question.
I want to accomplish in my JSP:

if((request.getParameter("ext")!=null)||(request.getParameter("ext").equals(
"0")))
{
    /* do Something */
}
else
{
    /* do Something else */
}

Using the <logic:equals> tag I write

<logic:equals parameter="ext" value="0">


</logic:equals>
<logic:equals parameter="ext" value="1">


</logic:equals>

But first this is not an "else" equivalent and secondly it does not account
for "null" if the parameter is not found in request.
What is the solution?

Thanks for your time on this silly question.



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