• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to take value from session in <<display:table>

 
kavita vala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using <display:table> tag to display my content because of its good look and inbuilt
pagination facility.
My code is given bello



In above code "investorlisting" is set into request .

I want to set it into session like session.setAttribute("investorlisting" , investorlisting);
than how can i take value from session in <display:table>
 
Harpreet Singh janda
Ranch Hand
Posts: 317
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get the value from session map implicit object of EL.
 
kavita vala
Ranch Hand
Posts: 42
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I know if i set it into session it gives me the value but how it use in <display-table>
Can you give me please example
 
Harpreet Singh janda
Ranch Hand
Posts: 317
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have not used this Tag. But you can try session object in place of "pageScope" object and it should work.
 
mart norramang
Greenhorn
Posts: 1
Eclipse IDE Flex Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<c:set var="INVESTOR_LISTING" value="investorlisting"/>
<c:set var="investorlisting" value="${sessionScope[INVESTOR_LISTING]}"/>

<display:table name="${investorlisting}" requestURI="">

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic