aspose file tools*
The moose likes Servlets and the fly likes Simple servlet Error - 405 - Help needed Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
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: 61063
    
  66

A redirect initiates a GET.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
anees ahamed
Ranch Hand

Joined: Feb 19, 2008
Posts: 31
It worked. Thanks..
 
Consider Paul's rocket mass heater.
 
subject: Simple servlet Error - 405 - Help needed