struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From puchacz <>
Subject Time of displaying data on the page
Date Tue, 20 Mar 2007 21:56:22 GMT


Hi If anybody could tell me, how can I measure the time of displaying some
data on the screen? 


<%@ include file="/WEB-INF/jsp/include.jsp"%>
<%@page import="bus.TimeHold"%>
<%@page import="java.util.Date"%>

<link type="text/css" href="./css/main.css" rel="stylesheet" media="screen">


<script language="JavaScript" type="text/javascript">
function displayName(){
var myVar = document.getElementById("startTime").value;
var myVary = document.getElementById("endTime").value;
alert("Value is: " + myVar  + "   " + myVary + "   "  + (myVary-myVar));


	java.util.Date begin = new Date();
	long pomocnicza; 
	pomocnicza = begin.getTime(); 

<body onload="displayName();">

<c:out value="${startTime}" />

<input type="text" value="<%=pomocnicza %>" id="startTime">

<table width="100%">


		<display:table name="users" export="false" id="currentRowObject"
			requestURI="" decorator="view.Wrapper">
			<display:column property="name" title="Name"  />
			<display:column property="lastName" title="Last name" />
			<display:column property="school" title="School" 
headerClass="table_head" />	


	java.util.Date end = new Date();

	pomocnicza2 = end.getTime(); 


<input type="text" value="<%=pomocnicza2 %>" id="endTime"/>




The thing is that the time which in the "pomocnicza2" is much more smaller
then the time of displaying the page. How to check time after display the
If anybody has any idea, please tell me!!! I sit on this problem for a such
a long time, and nothing :(.

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message