struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Hunter Hillegas <li...@lastonepicked.com>
Subject Re: Scope Issues Between Struts Tags and JSTL
Date Fri, 18 Jul 2003 17:46:53 GMT
Thanks. This did the trick. Just didn't see this documented anywhere.

> From: "Chen, Gin" <Gin.Chen@NielsenMedia.com>
> Reply-To: "Struts Users Mailing List" <struts-user@jakarta.apache.org>
> Date: Fri, 18 Jul 2003 13:41:26 -0400
> To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
> Subject: RE: Scope Issues Between Struts Tags and JSTL
> 
> Remember that JSTL and struts are not the same.
> Therefore, JSTL tags cant auto pick up the current element that a Struts tag
> is looking at.
> You should have: 
> 
> <nested:iterate id="foo" property="lineItems">
> <!--
> FS: <c:out value="${foo.fulfillmentStatus}"/>
> SO: <c:out value="${foo.sampleOrigin}"/>
> -->
> <c:if test="${foo.fulfillmentStatus == 'In Process' && foo.sampleOrigin ==
> 'special_order'}">
> ... THIS IS NEVER DISPLAYED SINCE JSTL TAGS CAN'T FIND VARS ...
> </c:if>
> </nested:iterate>
> 
> PS: (Not sure how you even get it to show up without the id attribute?)
> 
> -Tim
> 
> -----Original Message-----
> From: Hunter Hillegas [mailto:lists@lastonepicked.com]
> Sent: Friday, July 18, 2003 1:20 PM
> To: Struts List
> Subject: Scope Issues Between Struts Tags and JSTL
> 
> 
> I am trying to use both Struts tags and JSTL in a page.
> 
> I have the following:
> 
> 
> 
> Now, my JSTL tags can't find these variables in any scope. How should I
> properly address the data?
> 
> Thanks,
> Hunter
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org


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


Mime
View raw message