tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rahul Akolkar <rahul.akol...@gmail.com>
Subject Re: detect if a request parameter exists
Date Fri, 16 Dec 2005 18:00:25 GMT
On 12/16/05, Per Jørgen Walstrøm <per.walstrom@statnett.no> wrote:
> hello,
> there used to be a taglib called request, which is now deprecated (http://jakarta.apache.org/taglibs/doc/request-doc/intro.html).
Request had a tag called existsAttribute which was very handy. It could be used like this:
>
> <request:existsAttribute name="geMenuItem" value="true">
>    <!-- do something -->
> </request:existsAttribute>
>
> Does anybody have a suggestion of what taglib to use instead of request?
>
<snip/>

JSTL may suit your needs for this particular example, something to the
effect of:

<c:if test="${not empty requestScope.geMenuItem}">
  <!-- do something -->
</c:if>

-Rahul


> cheers,
> pj
>

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


Mime
View raw message