Enter your email address:

Delivered by FeedBurner


Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
sessions in jsp-part2
12-13-2011, 12:19 AM
Post: #1
Exclamation sessions in jsp-part2
We have already understand how to create the session in jsp,now lets give some idea about how to store session in a string.
After setting session &;t;%session.setAttribute("name",name)%> where name is the value we get from any text box or predefined.
For getting sessions as a string you have to "typecast" it means one object reference can be covert to another reference. So we must convert session object to string by following method below
String temp=(String)session.getAttribute("name");
Now we can use this session in our query or display name whatsoever enjoy happy coding any doubt ask us.
Find all posts by this user
Add Thank You Quote this message in a reply
Advertise here or at any positions around our site send a mail to info@walkinsforum.com
Post Reply 


[-]
Share/Bookmark (Show All)
Facebook Linkedin Technorati Twitter Digg MySpace Delicious

Possibly Related Threads...
Thread: Author Replies Views: Last Post
Smile sessions in jsp rajasri 1 207 01-12-2012 05:25 PM
Last Post: pawan

Forum Jump:


User(s) browsing this thread: 1 Guest(s)