mbsingh
mbsingh

Reputation: 489

How do I redirect after a few seconds from JSP page to Servlet?

I have been searching a lot for the answer but can't seem to find one.

I have a message to display to a user on a JSP page and want to redirect it to a servlet using the following URL : /BenchmarkWeb/Servlet?action=initiate

Can you guys help on what statement or method I would need to use to redirect this say, 10 seconds after it has been loaded ?

Upvotes: 0

Views: 3552

Answers (1)

Alexandre Lavoie
Alexandre Lavoie

Reputation: 8771

You can simply do it by using meta redirect :

<META http-equiv="refresh" content="10;URL=http://yournewurl">

Upvotes: 1

Related Questions