Thanks!!! I got it!!!

So, for my previous problem (stock price), how can I achieve that? Using
server side include?

Liwen

----- Original Message -----
From: "Preston L. Bannister" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, June 12, 2000 2:05 PM
Subject: Re: Refreshing jsp page...


> From: Liwen Chen
> > Sorry that I guess I don't understand what you suggested clearly. Now, I
> > only want to do
> > this: print the current time using a jsp file. The time will be updated
> > every ten minutes. I wrote
> > the jsp file as below, but it doesn't work. Help, please!
> >
> > <%@ page language="java" import="java.util.*" %>
> > <%! Date date = new Date(); %>
> > <html><head>
> > <title>Refresh Test</title>
> > <meta http-equiv="refresh" content="10">
> > </head>
> > <body>
> > Result is : <%= date.toString() %>!
> > </body>
> > </html>
>
> Try instead only:
>
> <html>
> <head>
> <title>Refresh Test</title>
> <meta http-equiv="refresh" content="600">
> </head>
> <body>
> Result is : <%= (new Date()).toString() %>!
> </body>
> </html>
>
> --
> Preston L. Bannister
> [EMAIL PROTECTED]
> http://members.home.com/preston
> pbannister via Yahoo! Messenger
>
>
___________________________________________________________________________
> 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

Reply via email to