Ponmari Subramanian
Ponmari Subramanian

Reputation: 112

How to automatically redirect my jsp page to another jsp page?

I am doing a project of intrusion detection.In that If a user takes a long time in one jsp page, then the jsp page should automatically redirect to another jsp or html ? How can I do this ? Please help guys ..

Upvotes: 1

Views: 1604

Answers (2)

Jacek Cz
Jacek Cz

Reputation: 1906

For me seems better than JS

 <head>
    <META http-equiv="refresh" content="5;URL=http://bla bala/xxx">
   </head> 

URL can be local as usual

Upvotes: 1

R. Oosterholt
R. Oosterholt

Reputation: 8110

You could add a html meta tag to the jsp page like this:

<meta http-equiv="refresh" content="5; url=http://example.com/">

Upvotes: 3

Related Questions