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 | 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 "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: 60050
    
  65

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..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple servlet Error - 405 - Help needed
 
Similar Threads
parameter from MIDlet cannot be displayed at servlet
Servlet question -standalone
HTTP error 405
HTTP Status 405 error comes
doget(),doPost(),do Trace(),doOption()