Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JSP Interest »

Re: Display of values changing with time.

Karr, David

2004-05-31


> -----Original Message-----
> From: A mailing list about Java Server Pages specification
>
> Hi Guys,
>
> I want to create a JSP page in which a thread runs that
> should print a number from 1 to 10, after every 2 seconds.
> That is first the web page shows 1, then after two seconds it
> shows 2, and so on, but what happens is that the page appears
> after approx. 2*10=20 seconds, and prints the numbers from 1
> to 10 in one go, not what I want.
>
> Can anybody suggest me a solution? (I know this can be
> elegantly done using a JavaScript but I want a JSP solution...)

Try googling for "meta refresh".

===========================================================================
To unsubscribe: mailto listserv@(protected)".
For digest: mailto listserv@(protected)".

Some relevant archives, FAQs and Forums on JSPs can be found at:

http://java.sun.com/products/jsp
http://archives.java.sun.com/jsp-interest.html
http://forums.java.sun.com
http://www.jspinsider.com
©2008 junlu.com - Jax Systems, LLC, U.S.A.