Win a copy of Svelte and Sapper in Action this week in the JavaScript forum!

Sunil Karumuri

Greenhorn
+ Follow
since Oct 20, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sunil Karumuri

I don't think URL class can be used here. URL is for across the web.
It should if you could rewrite your BufferInputStream Constructor to
bis = new BufferedInputStream(new FileInputStream(fileURL));
16 years ago
Add servlet.jar to the classpath.
It should be under <TOMCAT_HOME>\common\lib
The servlet API is not part of standard J2SE.
16 years ago
Not sure if this is a good idea but definitely worked for us.
Create a data structure to store user information and add it to session during logon.
Add refereneces of session objects to a somekind of list (Arraylist) and store this list in Application object.
You now have access to all session objects and can call session.invalidate() on the selected session isntance and delete from list.
Make sure you delete the session instance from the list when the session times out using HttpSessionBindingListener
16 years ago