This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Servlets and the fly likes session datas using JSTL in JS Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "session datas using JSTL in JS" Watch "session datas using JSTL in JS" New topic
Author

session datas using JSTL in JS

Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
I like to retrieve session datas (I mean data stored in session using setAttribute) using pagecontext in javascript.

How to do it.. Please assist me
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61071
    
  66

JavaScript executes on the client, so it has no access to server-side constructs. You'll need to create JavaScript markup in your response that represents the data you want to use on the client,


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Meet Gaurav
Ranch Hand

Joined: Oct 08, 2008
Posts: 492
Any samples please.. Am new to this..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: session datas using JSTL in JS