Total members 9952 | Gratitudes |It is currently Sat Feb 11, 2012 2:03 pm Login / Join Codemiles


All times are UTC [ DST ]




Post new topic Reply to topic  Quick reply  [ 3 posts ] 
Author Question
 Question subject: Converting Session object into string
PostPosted: Fri Oct 24, 2008 8:22 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:47 pm
Posts: 281
Has thanked: 0 time
Have thanks: 1 time

have one session object named "lastlogin"
i want to convert this session object into string...
i tried like this.....

session.getAttribute("lastlogin").toString();
but it is giving type mismatch error...

i want to convert this object and have to compare to string value...
how can i do that?...
thanx in advance...


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Converting Session object into string
PostPosted: Fri Oct 24, 2008 8:23 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:53 pm
Posts: 229
Has thanked: 0 time
Have thanks: 0 time
have one session object named "lastlogin"
i want to convert this session object into string...
i tried like this.....

session.getAttribute("lastlogin").toString();
but it is giving type mismatch error...

i want to convert this object and have to compare to string value...
how can i do that?...
thanx in advance...


TOP
 Profile Send private message  
Reply with quote  
 Question subject: Re: Converting Session object into string
PostPosted: Fri Oct 24, 2008 8:34 pm 
Offline
Proficient
User avatar

Joined: Sun Oct 19, 2008 3:53 pm
Posts: 229
Has thanked: 0 time
Have thanks: 0 time
String str = (String)session.getAttribute("yoursessionname");

I think you can solve your prob with this.


TOP
 Profile Send private message  
Reply with quote  
Post new topic Reply to topic Quick reply  [ 3 posts ] 
Quick reply


  


 Similar topics
 Topic title   Forum   Author   Comments 
 replacing each tab by the string “Tab”,  C-C++  Anonymous  1
 Breaking the String into Words  Java examples  msi_333  1
 need help about object detection using haarTraining  C-C++  Anonymous  0
 search for string in a cell array  Matlab Examples  msi_333  0
 object detection  Java  Anonymous  1

All times are UTC [ DST ]


Users browsing similar posts

Users browsing this forum: No registered users and 2 guests



Jump to:  
Previous Question | Next Question 




Home
General Talks
Finished Projects
Code Library
Games
Tutorials

Java
C/C++
C-sharp
php
Script
JSP/Servlets
Ajax
ASP/ASP.net
Google SEO
Database
Communications
Phpbb3 styles
Photoshop tutorials
Flash tutorials
Find a job






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team