File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes Simple servlet Error - 405 - Help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "Simple servlet Error - 405 - Help needed" Watch "Simple servlet Error - 405 - Help needed" New topic
Author

Simple servlet Error - 405 - Help needed

anees ahamed
Ranch Hand

Joined: Feb 19, 2008
Posts: 31
Hi,
I am redirecting to a servlet using res.sendRedirect("ValidUserServlet");
Below given is the servlet.
I get the below given error.

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


I have not used HTTP method GET.
Why does this happen?
Please help.

Regards,
Anees

Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 56179
    
  13

A redirect initiates a GET.


[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
anees ahamed
Ranch Hand

Joined: Feb 19, 2008
Posts: 31
It worked. Thanks..
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: Simple servlet Error - 405 - Help needed
 
Similar Threads
HTTP error 405
Servlet question -standalone
doget(),doPost(),do Trace(),doOption()
parameter from MIDlet cannot be displayed at servlet
HTTP Status 405 error comes