aspose file tools
The moose likes JSP and the fly likes sessiontimeout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "sessiontimeout" Watch "sessiontimeout" New topic


nitin kumar
Ranch Hand

Joined: May 14, 2002
Posts: 105
Hi guys,
I need to display dynamic values(href) on a jsp page which come from a database.So Im storing all the dynamic values in class in static variables.The problem is that the session is expiring.I wonder how those objects variables can be made persistent.In java is there anything to persist the values.And also the variables are private static and synchronised.And the object is invoked from each jsp page .I store all the values in a java file
Howard Kushner
Ranch Hand

Joined: Sep 19, 2003
Posts: 361
Hi Nitin,
Are you taking about an HttpSession?

Howard Kushner<br />IBM Certified Enterprise Developer - WebSphere Studio Application Developer V5.0<br />IBM Certified Advanced System Administrator - WebSphere Application Server V5.0<br />IBM Certified Solution Developer - Web Services with WebSphere Studio V5.1<br /><a href="" target="_blank" rel="nofollow">Developing J2EE Applications with WebSphere Studio</a> my Certification Study Guide for IBM Test 287
Winston Smith
Ranch Hand

Joined: Jun 06, 2003
Posts: 136
Try moving your logic out of the JSP page and into a Bean. This way, you can assign the Bean "application" scope, and its attributes will persist throughout sessions.

for (int i = today; i < endOfTime; i++) { code(); }
I agree. Here's the link:
subject: sessiontimeout