Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Struts 2 »

Time of displaying data on the page

puchacz

2007-03-20

Replies:


Hi

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

<code>


<%@(protected)"%>
<%@(protected)"%>
<%@(protected)"%>

<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
--
Sent from the Struts - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.