struts-user mailing list archives

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

Hi

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

<code>


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

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

<head>

<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));

}
</script>

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


</head>
<body onload="displayName();">

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

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



<table width="100%">
	<tr>
		<td>

<center>

		<display:table name="users" export="false" id="currentRowObject"
			requestURI="listOfUsers.do" 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" />	
		</display:table>
</center>

		</td>
	</tr>
</table>

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

	pomocnicza2 = end.getTime(); 
		

%>

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

</body>

</html>

</code>


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
page? 
If anybody has any idea, please tell me!!! I sit on this problem for a such
a long time, and nothing :(.

Thnx 
-- 
View this message in context: http://www.nabble.com/Time-of-displaying-data-on-the-page-tf3436810.html#a9582552
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message