message HTTP method GET is not supported by this URL
843841Apr 18 2005 — edited Dec 16 2008Hi I am getting the following error message after executing the folloing program.
Please help me
type Status report
message HTTP method GET is not supported by this URL
description The specified HTTP method is not allowed for the requested resource (HTTP method GET is not supported by this URL).
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class Sample extends HttpServlet{
public void doPost(HttpServletRequest request,HttpServletResponse response)throws IOException,ServletException{
System.out.println("HI");
}
}