I think it can work for the second scenario also because every time the
page is refreshed it sends a request to the server. So in the jsp we can
compare the timestamp in session/request with actual time and print it.



-----Original Message-----
From: Vilpesh Mistry [mailto:[EMAIL PROTECTED] 
Sent: Tuesday 07 February 2006 10:59
To: Struts Users Mailing List
Subject: Re: Regarding time setting in jsp

Hello,

Scenario 1>
Time 2:00 pm at which request for page1 was received.
Time 2:01 pm at which request for page2 was received.

If u are talking to show the difference 1 minute(2:01
- 2:00)pm then u will as obvious will have to store
request time of page1 in session/in hidden variable
which u would use to compare with the system time when
u receive request for page2.

But i feel this idea will not help in 2nd scenario
where u refresh the page

thanks
vilpesh

--- gomathi <[EMAIL PROTECTED]> wrote:

> 
> 
> hi I am working in struts based project.
> I want to calculate time of from page1 to page2.I
> want to display the time in 
> page2.Once again i refresh the page its also display
> the  time .how to get this
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

This message and any attachments are confidential and intended solely for the 
addressee. If you have received this message in error, please notify Discovery 
immediately, telephone number +27 11 529 2888. Any unauthorised use; alteration 
or dissemination of the contents of this email is strictly prohibited. In no 
event will Discovery or the sender be liable in any manner whatsoever to any 
person for any loss or any direct, indirect, special or consequential damages 
arising from use of this email or any linked website, including, without 
limitation, from any lost profits, business interruption, loss of programmes or 
other data that may be stored on any information handling system or otherwise 
from any assurance that this email is virus free even if Discovery is expressly 
advised of the possibility of such damages. Discovery is an Authorised 
Financial Services Provider.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to