struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hal Deadman" <hal.dead...@Tallan.com>
Subject RE: Proposed: logic:else clause
Date Fri, 03 Jan 2003 22:20:57 GMT
I think the faster everyone moves from "logic" tags to JSTL the happier
everyone will be. The JSTL choose tag already supports if/elseif/else. The
expression language in JSTL makes logic easy that would be nasty with the
various logic tags.

<c:choose>
<c:when test="${foo.bar eq 'baz'}">
...
</c:when>
<c:otherwise>
...
</c:otherwise>
</c:choose>

http://www.manning.com/bayern/appendixA.pdf


> -----Original Message-----
> From: James Turner [mailto:turner@blackbear.com]
> Sent: Friday, January 03, 2003 4:44 PM
> To: struts-dev@jakarta.apache.org
> Subject: Proposed: logic:else clause
>
>
> I find in my code, I do the following a lot:
>
> <logic:equal name="foo" property="bar" value"baz">
> .
> .
> .
> </logic:equal>
> <logic:notEqual name="foo" property="bar" value"baz">
> .
> .
> .
> </logic:notEqual>
>
> I'd like to propose (and would be willing to code) the following:
> <logic:equal name="foo" property="bar" value"baz">
> .
> .
> .
> <logic:else>
> .
> .
> .
> </logic:else>
> </logic:equal>
>
>
> What do people think?
> James
>
> _________________________________________
> James
> ICQ#: 8239923
> More ways to contact me: http://wwp.icq.com/8239923
> See more about me: http://web.icq.com/whitepages/about_me?Uin=8239923
> _________________________________________
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:struts-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:struts-dev-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:struts-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-dev-help@jakarta.apache.org>


Mime
View raw message