Accessing objects in request through <c:out jstl tags - Urgent

K

KK

Dear All,
I have a doubt on using the <c:eek:ut jstl tags

I have a List object in the request scope. How can I access that?

<c:eek:ut value="pagecontext.request.?" />

suppose I have a list named userList in request scope

Thanks and Regards
kk
 
K

KK

Hi Xavier,
Are you sure that I can access a list which is in the requet scope
directly like this <c:eek:ut value="${listName[0]}"/>

I just wanted to get the size of the list. I am not sure the method
you explained will really work or not.
Bye
kk
Xavier Tarrago said:
<c:eek:ut value="${listName[0]}"/>
to loop on the list, see forEach :
<forEach var="listItem" items="${listName}">
<c:eek:ut value="${listItem}" />

KK said:
Dear All,
I have a doubt on using the <c:eek:ut jstl tags

I have a List object in the request scope. How can I access that?

<c:eek:ut value="pagecontext.request.?" />

suppose I have a list named userList in request scope

Thanks and Regards
kk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

Forum statistics

Threads
473,744
Messages
2,569,481
Members
44,900
Latest member
Nell636132

Latest Threads

Top