hi reg jsp page redirect  
Author Message
arvindkannan1





PostPosted: 2006-6-1 0:29:00 Top

java-programmer, hi reg jsp page redirect hi all i have jsp page -where the user fills up some fields.basically i
dont want user to fill up those forms during nightime . so
i take system time which is cst and calculate whether its am or pm and
if its between 7pm and 6am i redirect saying u cannot fill it up.

the executables are placed in server which is located in cst time zone.

what happens is when any person from asian counties click the link its
not redirecting its still shows the form .

when i test it locally its fine .any help cant i take the system time
and redirect based on that

thanks for the help

 
Fred Kleinschmidt





PostPosted: 2006-6-1 3:57:00 Top

java-programmer >> hi reg jsp page redirect
<email***@***.com> wrote in message
news:email***@***.com...
> hi all i have jsp page -where the user fills up some fields.basically i
> dont want user to fill up those forms during nightime . so
> i take system time which is cst and calculate whether its am or pm and
> if its between 7pm and 6am i redirect saying u cannot fill it up.
>
> the executables are placed in server which is located in cst time zone.
>
> what happens is when any person from asian counties click the link its
> not redirecting its still shows the form .
>
> when i test it locally its fine .any help cant i take the system time
> and redirect based on that
>
> thanks for the help
>
You need get the time zone in which the system time is being
obtained, and convert the time to
--
Fred L. Kleinschmidt
Boeing Associate Technical Fellow
Technical Architect, Software Reuse Project
your time zone.


 
Oliver Wong





PostPosted: 2006-6-1 4:44:00 Top

java-programmer >> hi reg jsp page redirect
<email***@***.com> wrote in message
news:email***@***.com...
> hi all i have jsp page -where the user fills up some fields.basically i
> dont want user to fill up those forms during nightime . so
> i take system time which is cst and calculate whether its am or pm and
> if its between 7pm and 6am i redirect saying u cannot fill it up.
>
> the executables are placed in server which is located in cst time zone.
>
> what happens is when any person from asian counties click the link its
> not redirecting its still shows the form .
>
> when i test it locally its fine .any help cant i take the system time
> and redirect based on that
>
> thanks for the help

When you say "cant i take the system time", do you mean the time local
to where the user is, or to where your server is?

If the answer is the user, the answer is "no". Otherwise, the answer is
"yes".

- Oliver

 
 
sivga





PostPosted: 2006-6-1 5:41:00 Top

java-programmer >> hi reg jsp page redirect
Oliver Wong wrote:
> <email***@***.com> wrote in message
> news:email***@***.com...
> > hi all i have jsp page -where the user fills up some fields.basically i
> > dont want user to fill up those forms during nightime . so
> > i take system time which is cst and calculate whether its am or pm and
> > if its between 7pm and 6am i redirect saying u cannot fill it up.
> >
> > the executables are placed in server which is located in cst time zone.
> >
> > what happens is when any person from asian counties click the link its
> > not redirecting its still shows the form .
> >
> > when i test it locally its fine .any help cant i take the system time
> > and redirect based on that
> >
> > thanks for the help
>
> When you say "cant i take the system time", do you mean the time local
> to where the user is, or to where your server is?
>
> If the answer is the user, the answer is "no". Otherwise, the answer is
> "yes".
>
> - Oliver

Thanks for the help i guess i need to take the timezone into
consideration my server will be in cst and if i jus take date.gethours
... wont help coz users will be in different time zone.

thanks