Servlet help needed!

2003-07-12 Thread FIkayo Otun
Good day(Sir/ma), I am a java programmer just starting to explore the J2ee platform. I use jdk1.4.2... and tomcat to develop and deploy my servlet. I however need a way to end my session when ever I close my browser. I noticed when I close my browser my session will still be on. I am currently

Re: Servlet help needed!

2003-07-12 Thread Rick Roberts
//Invalidate session if inactive for more than 1 hour if(!session.isNew()){ // skip new sessions Date hourAgo = new Date(System.currentTimeMillis() - 60*60*1000); Date accessed = new Date(session.getLastAccessedTime()); if(accessed.before(hourAgo)) session.invalidate(); } FIkayo Otun wrote:

Re: Servlet help needed!

2003-07-12 Thread Jason Coleman
, 2003 11:30 PM Subject: Re: Servlet help needed! //Invalidate session if inactive for more than 1 hour if(!session.isNew()){ // skip new sessions Date hourAgo = new Date(System.currentTimeMillis() - 60*60*1000); Date accessed = new Date(session.getLastAccessedTime()); if(accessed.before

Re: Servlet help needed

2001-05-04 Thread Noel E. Lecaros
Hi, Ante You actually don't need to edit anything in server.xml if your app uses default settings. Just drop your app's directory tree into the webapp subdir and start Tomcat. Which web.xml file did you make changes in anyway? You're not supposed to edit the web.xml in the conf subdir! Hope

Servlet help needed

2001-04-24 Thread Ante Sabo
I cannot deploy my servlet application to run by Tomcat. I editet server.xml and web.xml files as described in documentation to set up my contextes, but all I got on my screen is Tomcat error message: Mapping context with unregisterred servlet What this message is meaning to me. I