Transferring Control using Timer

you can simply use meta tag in html <head> section
<META HTTP-EQUIV=Refresh CONTENT="300; URL=page3.jsp">
or use:
<% response.setHeader( "Refresh", "300; URL=page3.jsp" ); %>


Correct, it transfers for a JSP but gives an error if i use servlet

description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).

Pls help
RajeshPDAsked:
Who is Participating?
 
kennethxuCommented:
>> HTTP method GET is not supported by this URL
This is because you didn't implement doGet in your servlet, you need this:

public void doGet( ... ) {
  doPost( ... );
}
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.