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

Discussion in 'Java' started by KK, Aug 27, 2003.

  1. KK

    KK Guest

    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
     
    KK, Aug 27, 2003
    #1
    1. Advertising

  2. KK

    KK Guest

    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" <> wrote in message news:<bihobl$466$>...
    > <c:eek:ut value="${listName[0]}"/>
    > to loop on the list, see forEach :
    > <forEach var="listItem" items="${listName}">
    > <c:eek:ut value="${listItem}" />
    >
    > "KK" <> a écrit dans le message news:
    > ...
    > > 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
     
    KK, Aug 27, 2003
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Steve
    Replies:
    0
    Views:
    5,348
    Steve
    Jul 1, 2003
  2. Brian Birtle
    Replies:
    2
    Views:
    2,073
    John Saunders
    Oct 16, 2003
  3. Greg Smith
    Replies:
    35
    Views:
    3,189
    Alex Kay
    Oct 24, 2004
  4. Robert Mark Bram

    Custom JSTL that accepts JSTL expression

    Robert Mark Bram, Dec 15, 2004, in forum: Java
    Replies:
    0
    Views:
    977
    Robert Mark Bram
    Dec 15, 2004
  5. DaFoot
    Replies:
    1
    Views:
    1,705
    DaFoot
    Oct 23, 2008
Loading...

Share This Page