aspose file tools*
The moose likes Servlets and the fly likes Get method error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Get method error" Watch "Get method error" New topic
Author

Get method error

Megha Singhal
Ranch Hand

Joined: Feb 28, 2012
Posts: 182

why the following error is coming

HTTP Status 405 - HTTP method GET is not supported by this URL

--------------------------------------------------------------------------------

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).


--------------------------------------------------------------------------------

Apache Tomcat/6.0.18


if i no where use Get method, infact i was overiding Get method, i also remove those lines
Anurag Verma
Ranch Hand

Joined: Mar 30, 2012
Posts: 124

This error comes when your servlet is not having the doGet method overridden into it. If you already have doGet method in your servlet, remove the super.doGet(req, resp); call from it & it should go away.
Megha Singhal
Ranch Hand

Joined: Feb 28, 2012
Posts: 182

Anurag Verma wrote:This error comes when your servlet is not having the doGet method overridden into it. If you already have doGet method in your servlet, remove the super.doGet(req, resp); call from it & it should go away.


Thanks, its resolved.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Get method error
 
Similar Threads
parameter from MIDlet cannot be displayed at servlet
doget(),doPost(),do Trace(),doOption()
HF p176 example compile error
HTTP Status 405 - HTTP method GET is not supported by this URL
doGet method