struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chen, Gin" <Gin.C...@NielsenMedia.com>
Subject RE: Scope Issues Between Struts Tags and JSTL
Date Fri, 18 Jul 2003 17:41:26 GMT
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


Mime
View raw message