*
The moose likes JSP and the fly likes setInterval() in JSP Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "setInterval() in JSP" Watch "setInterval() in JSP" New topic
Author

setInterval() in JSP

Kaustubh Hande
Greenhorn

Joined: Apr 10, 2007
Posts: 18
Hello,
Im working with JSP in WSAD 5.0. I wanted to know if do
setInterval("action","interval in millisec") and
setTimeout("action","interval in millisec") methods keep the session active they being executed as backgroud process, even if the application is left idle for the set server session timeout??
Please help.

Thanks
Kaustubh
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

I assume you're talking about the Javascript setTimeout and setInterval methods. Since these methods are executed on the client, they would have no effect on anything pertaining to the server environment (unless, of course, they generate requests to the server. IE: AJAX).


Java API J2EE API Servlet Spec JSP Spec How to ask a question... Simple Servlet Examples jsonf
Kaustubh Hande
Greenhorn

Joined: Apr 10, 2007
Posts: 18
Thanks for that reply,
Im using setInterval("method called",time in millisec);
The method that i call then uses window.showModelessDialog("PageExp.jsp","",..);
Now when the pop jsp is opens is this operation taken as a server request??
does this operation resets the server session timeout??
Please help.

Thanks
Kaustubh
Ben Souther
Sheriff

Joined: Dec 11, 2004
Posts: 13410

Yes, any request made back to the server will reset your timeout.
 
Consider Paul's rocket mass heater.
 
subject: setInterval() in JSP