tomcat-taglibs-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Hardy <ahardy.str...@cyberspaceroad.com>
Subject Re: How can I convert this to JSTL?
Date Mon, 15 Sep 2003 23:55:18 GMT
<c:set var="suggsArray" value="${suggestionList.value}"/>

or were you really asking how you can access an EL variable in a scriplet?



Sorry but I'm off to bed now anyway.

Adam

On 09/16/2003 12:27 AM Billy Bacon wrote:
> I'm hoping someone can help me out with this one.... I'm almost finished
> converting the entire app :-)
> 
> I have a <c:forEach> loop and within the loop I have a scriptlet. Now I'm
> aware that JSTL variables are *not* visible within scriptlets. So how would
> I convert the following below... 'suggestionList' is the variable that I'm
> having trouble with.
> 
> <c:forEach items="${SPELL_CHECK_SUGGESTIONS_BEAN}" var="suggestionList">
> 
> <% String[] suggs =
> (String[])((java.util.Map.Entry)suggestionList).getValue();
> 
> ....
> %>
> 
> </c:forEach>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: taglibs-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: taglibs-user-help@jakarta.apache.org
> 
> 

-- 
struts 1.1 + tomcat 4.1.27 + java 1.4.2
Linux 2.4.20 RH9


Mime
View raw message