• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session Tracking

 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hai,
I am doing a project using Servlets where i am putting a Hashtable object in the setAttribute() of the session
object, Is it a must that the contents of the Hashtable should be serialized.
Because the Session Contents are not made available in the other Servlet, or there may me any other reasons
the thing is session is getting tracked but not the values are made available.
Also when i am encoding my URL to hold session values its not generating any jsessionid as part of it. Please
do sort out the problem.
Regards
Roshini
 
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As per session2.2 spec all session objects must be of serializable type. What's your hashtable holding? Are they are Strings or your own written classes ?
regds
maha anna
 
Roshini Sridharan
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My Hashtable object holds Integer values, I still tried with creating my own class which implements Serializable but still it didn't work, Pls help out.
class Quantity implements Serializable
{
private int qty;
public Quantity(int q){qty=q;}
// get methods
}
Roshini Sridharan
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic