Magat Law
Magat Law

Reputation: 5

Call another gsp after certain amount of time

so I want to call a certain gsp after certain amount of time

   def index()
   {
           //code here
           //after 30secs
           redirect (action :"anothergsp")
   }

Upvotes: 0

Views: 49

Answers (1)

Mike W
Mike W

Reputation: 3932

You could add a refresh like so:

<head>
    <meta http-equiv="refresh" content="30;url=/somewhere/else" />
    ....

Upvotes: 2

Related Questions