aspose file tools*
The moose likes Other Open Source Projects and the fly likes How to take value from session in <<display:table> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "How to take value from session in <<display:table> " Watch "How to take value from session in <<display:table> " New topic
Author

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

kavita vala
Ranch Hand

Joined: Jul 22, 2010
Posts: 42
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

Joined: Jan 14, 2010
Posts: 317

You can get the value from session map implicit object of EL.
kavita vala
Ranch Hand

Joined: Jul 22, 2010
Posts: 42
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

Joined: Jan 14, 2010
Posts: 317

I have not used this Tag. But you can try session object in place of "pageScope" object and it should work.
mart norramang
Greenhorn

Joined: Oct 09, 2011
Posts: 1

<c:set var="INVESTOR_LISTING" value="investorlisting"/>
<c:set var="investorlisting" value="${sessionScope[INVESTOR_LISTING]}"/>

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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to take value from session in <<display:table>