Session in jsp problem

Thread Solved

Join Date: Dec 2007
Posts: 1,649
Reputation: javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all javaAddict is a name known to all 
Solved Threads: 223
Featured Poster
javaAddict's Avatar
javaAddict javaAddict is offline Offline
Posting Virtuoso
 
0
  #11
21 Days Ago
Originally Posted by marysbv View Post
I have similar prob. The get attribute is null while the id is not null.
for my java:
if(session.getAttribute(abc)==null)
System.out.println(abc is null
else
System.out.println(abc is not null)

if(session.getId()==null)
System.out.println(id is null)
else
System.out.println(abc is not null)

Do i need to also use session.setAttribute(abc) in the jsp?
Start your own thread, be more descriptive, did you put it in the session?
Check out my New Bike at my Public Profile at the "About Me" tab
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC