?
Solved

Refreshing the page every 10 mins

Posted on 2003-03-05
14
Medium Priority
?
267 Views
Last Modified: 2010-04-01
Here is my problem:

I need a page to refresh every 10 mins (or any given interval) and when it times out (time must be kept on the server not the client) I need it to switch between 2 different includes.

Anyone want to tackle this?

thanks.
0
Comment
Question by:zerium
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 2
  • +2
14 Comments
 
LVL 19

Expert Comment

by:cheekycj
ID: 8073859
to refresh a page every 10 minutes.. use this:

<META HTTP-EQUIV="refresh" content="600;URL=http://www.yoursite.com/yourpage.jsp">

about the second part, I am not sure.

Every 10 mins you want to switch include files or every timeout you need to change something.

CJ
0
 
LVL 2

Author Comment

by:zerium
ID: 8074208
I'd like to do this server side (the keeping track of time) I dont want the user to refresh their browser every 10 mins. I'd like to do this through JSP.
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 8074303
but you can't make the user's browser reload from the server side.  To make the page loaded refresh, the browser itself has to initiate the request.

CJ
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 92

Expert Comment

by:objects
ID: 8077318
> I'd like to do this through JSP.

HTTP is a request-response protocol. The browser sends a request to the server, which returns a response (typically html). It does not support the server sending requests to the browser.
0
 
LVL 2

Expert Comment

by:syd108
ID: 8081112
The easiest way to do this is to put an invisible applet in the jsp and do that switching code server side by passing url paramaters back to the server.

regards
syd
0
 
LVL 2

Expert Comment

by:syd108
ID: 8081212
Some more useful links:
http://forum.java.sun.com/thread.jsp?thread=318194&forum=33&message=1292630

You can also take a look at the java.util.Timer and java.util.TimerTask

syd
0
 
LVL 2

Author Comment

by:zerium
ID: 8081501
I think we have solved this here at work. We are going to create a bean that when its loaded in memory it captures the time and then every 10 mins or so it switches two includes.

I'm sorry if I never made it clear that we aren't concerned about the user getting the new page. We don't want to force them to refresh every 10 mins. The new page will be there but, they will only see it if they hit the page again.
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 8081550
ah ok.

Would you like to have this question PAQd and your pts refunded?

CJ
0
 
LVL 2

Author Comment

by:zerium
ID: 9460437
yeah CJ thanks for help everyone... sorry if it was a hassle...
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 9460489
Ask a 0 point question here:
http://www.experts-exchange.com/Community_Support/

Ask for this question to be PAQd.

CJ
0
 
LVL 19

Expert Comment

by:cheekycj
ID: 9462231
I think this should be PAQd rather than deleted.

CJ
0
 
LVL 2

Accepted Solution

by:
Lunchy earned 0 total points
ID: 9488840
Question points reduced (100) and question PAQ'd
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This month, Experts Exchange’s free Course of the Month is focused on CompTIA IT Fundamentals.
In today's business world, data is more important than ever for informing marketing campaigns. Accessing and using data, however, may not come naturally to some creative marketing professionals. Here are four tips for adapting to wield data for insi…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
Suggested Courses

741 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question