This week's book giveaway is in the Android forum.
We're giving away four copies of Head First Android and have Dawn & David Griffiths on-line!
See this thread for details.
The moose likes Servlets and the fly likes servlets/jsp Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Head First Android this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets/jsp" Watch "servlets/jsp" New topic
Author

servlets/jsp

syam prasad
Greenhorn

Joined: May 15, 2001
Posts: 2
I want to display some number of questions one by one with 180 seconds difference or by pressing next button randomly by using servlets/jsp.Till now i can display all the questions at a time randomly.I don't want to use script in my code.


shyam
Peter den Haan
author
Ranch Hand

Joined: Apr 20, 2000
Posts: 3252
Originally posted by syam prasad:
I want to display some number of questions one by one with 180 seconds difference or by pressing next button randomly by using servlets/jsp.Till now i can display all the questions at a time randomly.I don't want to use script in my code.

You could try <META HTTP-EQUIV="Refresh" content="180;URL=questions.jsp"> in your HTML header. This should, if supported, cause the page to refresh with the specified URL after 180 seconds. You can then respond with a new random question.
- Peter

[This message has been edited by Peter den Haan (edited May 18, 2001).]
 
Don't get me started about those stupid light bulbs.
 
subject: servlets/jsp
 
It's not a secret anymore!