Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
mak zoe
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all, I am first here...
I am now working a servlet which will also be connected to the database.
The problem is that , it shows the following error...

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


I have tried the following code and also the code :: doPost(request,response);
However, both don't work...

Please help...

 
James Tharakan
Ranch Hand
Posts: 580
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The access specifier of doGet method is public...
public void doGet(HttpServletRequest request, HttpServletResponse response)

and its doPost not doPOST()
 
shivendra tripathi
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
James Tharakan wrote:The access specifier of doGet method is public...
public void doGet(HttpServletRequest request, HttpServletResponse response)


It's protected not public. And I still have to find out why given code doesn't work.
 
James Tharakan
Ranch Hand
Posts: 580
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
shivendra tripathi wrote:It's protected not public.


Thanks for correcting me
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic