Hi,
I am using struts 2.
I need to have a clock ticking every second in my webpage to show server time. I do not want to refresh my whole page every second and i do not want to use applet.
Now how can i display time in my webpage?
I wrote jsp code like the following:::::
[code=java]
<%
java.util.Date d= new java.util.Date( );
DateFormat df = DateFormat.getD ateInstance();
out.println(df. format(d));
%>
[/code]
But it is not refreshing.
I want that it should not refresh my whole page but it should refresh the time only.
I am using struts 2.
I need to have a clock ticking every second in my webpage to show server time. I do not want to refresh my whole page every second and i do not want to use applet.
Now how can i display time in my webpage?
I wrote jsp code like the following:::::
[code=java]
<%
java.util.Date d= new java.util.Date( );
DateFormat df = DateFormat.getD ateInstance();
out.println(df. format(d));
%>
[/code]
But it is not refreshing.
I want that it should not refresh my whole page but it should refresh the time only.
Comment