Link to home
Start Free TrialLog in
Avatar of Jagadeesh M
Jagadeesh MFlag for United States of America

asked on

redirect.....after sometime

Hi,

My question is regarding the redirection.

I've a confirmation jsp page which is forwarded from a servlet. Once the confirmation page shows up...i need that page to redirect to login page say after 10 seconds....how can i accomplish this using java/jsp.


thank you.
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
But JavaScript may not be enabled ;-)
He he, CEHJ, I knew you'd say that ;-) but if it is enabled, I hope it works the same way on all browsers as long as the version is the same.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Jagadeesh M

ASKER

so if i go for javascript option....do i need to just specify that in the script tags...thatz it for something else...?
Yes.

<script language = "javascript" type = "text/javascript" >

write the functions here

</script>

Set one of the functions as the handler for your body's onload event.
>> Set one of the functions as the handler for your body's onload event.

In that one, you need to do: >> setTimeout ( "redirect ()", 10000 ) ;
it should be said though, that every browser (including WebTV) that I have had to use has accepted the META tag...  though not every browser has done javascript...
You're sure they handle it in the same manner (meaning http-equiv, url etc attributes don't change)?
as far as I have seen, yes...

I am sure there are some browsers that do not support it though, which is why a link should also be provided...
(I haven't tested anything on WebTV for a good 5 years or so it should be noted) ;-)

They might now support javascript...
:-)