Timer for Servlet/JSP

How to add the timer to the Servlet/JSP page so that after the timer is expired user is directed to some other resource?
[127 byte] By [ameyabirjea] at [2007-10-2 8:54:52]
# 1
In JSP / HTML it is quite easy.You need to use META DATA Tags
pazhanikanthana at 2007-7-16 22:58:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Hi dude'sBut how to start and stop the timer in jsp page.what is the code to stop to the timer after a specified duration and redirect it to servlet.RegardsSyed
muheeba at 2007-7-16 22:58:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 3
What's the code of timer that is to be implemented in JSP?
speedy_dovea at 2007-7-16 22:58:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 4
How to add the timer to the Servlet/JSP page so that after the timer is expired user is directed to some other resource?
sudhandraselvia at 2007-7-16 22:58:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 5

I want to know how can get a clock in servlet output....

I have a code of javascript for clock......

<HTML><HEAD><TITLE></TITLE>

<SCRIPT LANGUAGE="Javascript"><!--

var x = 10

var y = 1

function startClock(){

x = x-y

document.frm.clock.value = x

setTimeout("startClock()", 1000)

if(x==0){

alert("BOOM");

x=10;

}

}

//--></SCRIPT>

</HEAD>

<BODY BGCOLOR="#FFFFFF" onLoad="startClock()">

This page will explode in

<FORM NAME="frm">

<INPUT TYPE="TEXT" NAME="clock" SIZE=4 >

</FORM>

seconds...

</BODY></HTML>

jayeeeea at 2007-7-16 22:58:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 6
the best way to do this is.....not by using the javascript..but...thre is a header called refresh header....that can be used to redirect from a particular page to another after a specific time
sai.sandeep1a at 2007-7-16 22:58:50 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...