Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

message HTTP method GET is not supported by this URL

843841Apr 18 2005 — edited Dec 16 2008
Hi 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");
}
}
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 13 2009
Added on Apr 18 2005
9 comments
480 views