Well, first of all, there's no technical reason you can't use the JSTL
and Struts taglibs on the same page.

An important question is what web container you're using.  If your web
container supports JSP 2.0, then you can use the EL in your JSP
(assuming you use the servlet 2.4 doctype, and a couple of other
provisos).

If your web container doesn't support JSP 2.0, and you want to use the
EL in the attributes of your Struts tags, then you'll need to utilize
the "Struts-EL" library, which you'll find in the "contrib" directory of
the Struts distribution.

> -----Original Message-----
> From: luca [mailto:[EMAIL PROTECTED] 
> 
> Hi, I'm a bit familiar with JSTL, but right now I need to 
> integrate with some existing JSP code which uses the struts 
> tag-lib and I am a bit lost there.
> 
> How do I turn this JSTL:
> 
>      <c:set var="gridsize" value="2" />
>      <c:if test="${someELvar >= 120}">
>        <c:set var="gridsize" value="3" />
>      </c:if>
> 
> into something that works with the struts-logic tags?
> 
> I understand that I can use something like:
> 
> <logic:greaterThan parameter="someELvar" value="120">
>        ???????????????
> </logic:greaterThan>
> 
> How do I set/read EL using the struts taglibs?
> 
> thanks
> 
> Luca
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to