I got no exception or error.. it looked like it just skipped over the tag.  
Thats because I had a typo in the taglib referece at top of jsp... why does it 
always have to be something stupid like that.haha

________________________________

From: Karr, David [mailto:[EMAIL PROTECTED]
Sent: Fri 4/1/2005 6:40 PM
To: Struts Users Mailing List
Subject: RE: JSTL vs Logic 



> -----Original Message-----
> From: Brian McGovern [mailto:[EMAIL PROTECTED]
>
> I am switching from using struts-logic tags to jstl and have
> a really basic question.
>
> An object stored in Application Scope has a method called
> getKeyValues() that returns an array list of beans, each
> having a getKey and getValue method.
>
> logic tag works.
>  <logic:iterate id="ListItem" name="STATES_PROPERTIES_KEY"
> property="keyValues">
>       <option value="<bean:write name="ListItem"
> property="key" />"><bean:write name="ListItem"
> property="value"/> </logic:iterate>
>
> jstl doesn't
>  <c:forEach var="ListItem"
> items="${STATES_PROPERTIES_KEY.keyValues}" varStatus="currentItem" >
>       <option value="<c:out value="${ListItem.key}"
> />"><c:out value="${ListItem.value}" /> </c:forEach>

If it doesn't work, what happens?  Do you get an exception?  What do you
see when you "view source" the output?  In place of '<c:out
value="${ListItem.key}"/>', do you see nothing, '<c:out
value="${ListItem.key}"/>', '${ListItem.key}', or something else?

---------------------------------------------------------------------
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