Hi Chen,
In the JSP page you could add the following line in between <Head> </HEAD>
section.
<META HTTP-EQUIV="Refresh" CONTENT="300">
Every 5 mins the page gets refreshed automatically and the JSP will be
invoked every time it is refreshed.
If the latest stock information is to be displayed every time the JSP is
invoked, add a servlet tag in the JSP,
which fetches the stock info. This servlet is invoked every time the JSP
gets invoked.
The JSP embeds the output of this servlet displaying the latest stock
information.
Regards,
Mahesh
----- Original Message -----
From: Liwen Chen <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 12, 2000 8:26 AM
Subject: Refreshing jsp page...
> I wrote a servlet to retrieve stock information for some stocks interested
> by my boss. And I use a JSP
> page to display the table. The problem is: my boss askes the page to be
> refreshed every five or ten mins.
> How can I achieve it? It seems the JSP file is compiles once and later, I
> always get the same content when i try to refresh it. When I visiting web
> pages, I find that there are lot of pages that refreshing all the
> time and the performance looks good. I really don't know how to achieve
> that. Anyone can help?
>
> Thanks a lot!
>
> Liwen
>
>
___________________________________________________________________________
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html