How to implement timer for a online quiz application using jsp? I tried using javascript timer. It starts from beginning as next question is displayed. Pls help on this.

you don't.
JSP isn't the proper platform for implementing business logic.
Use a servlet instead. Place start time of the sequence in the session, at each incoming request check whether the maximum time has elapsed and if so tell the user he failed.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.