Refreshing a JSP page periodically???


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 6 of 6

Thread: Refreshing a JSP page periodically???

  1. #1
    Join Date
    Aug 2004
    Posts
    10

    Question Refreshing a JSP page periodically???

    Hi, I am Rakesh. I need to refresh a JSP page periodically [ ie. every 5 seconds ]. Ths JSP page has an applet running and need to be refreshed. Please Help me.
    ... Thank You
    ... Rakesh
    ... Rakesh.A

  2. #2
    Join Date
    Sep 2004
    Posts
    12
    Add the following line to the <head> section of your JSP:

    Code:
      <meta http-equiv="Refresh" content="5; url=yourpage.jsp" />

  3. #3
    Join Date
    Aug 2004
    Posts
    10

    Smile Thank You,

    Thank You. I was searching for this solution since a long time. Any way i'll try it. if i add the meta tag in the same page which needs to be refreshed will it work?

    ... Rakesh
    ... Rakesh.A

  4. #4
    Join Date
    Sep 2004
    Posts
    12
    It should. Any page that contains that tag will load the page, wait 5 seconds, and then load the page again. This will continue as long as the page has that meta tag.

  5. #5
    Join Date
    Sep 2004
    Posts
    3

    meta tags

    <meta http-equiv="Refresh" content="5; url=yourpage.jsp" />

    keep in mind this tag bans you from google for life.........
    Its happened to me and they won't even discuss adding the domain again when you get rid of it.


  6. #6
    Join Date
    Aug 2004
    Posts
    10

    Smile

    Thank You,
    Thanks a lot for ur suggessions.
    Bye ...
    ... Rakesh.A

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center