This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JSP and the fly likes Mixing JSTL and JSP? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "Mixing JSTL and JSP?" Watch "Mixing JSTL and JSP?" New topic

Mixing JSTL and JSP?

Gary Seibold

Joined: Oct 08, 2004
Posts: 7
Can I mix JSP code in with my JSTL? Can I access variables from the JSTL?

I would like to do something like....
<c:forEach var="theList" items="${sessionScope.results}">
<c:set var="previousList" value="${theList[0]}"/>
String reply = javaFunction(previousList);//<<< from JSTL? or ${previousList}
<c ut value="${theList[0]}"/>

Is there another way to do this (other than all JSP)?
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
yes, no, yes (in fact the way you display doesn't work).

It is sorta covered in the JavaRanch Style Guide.
subject: Mixing JSTL and JSP?
Similar Threads
Using aggregate sql (sum) in a jstl sql action
Hashtables in JSTL
can i call a function of servlet using jstl
accessing jsp array variable in javascript
Convert JSTL variable type