aspose file tools*
The moose likes Servlets and the fly likes problem when using request Dispatcher 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 "problem when using request Dispatcher" Watch "problem when using request Dispatcher" New topic
Author

problem when using request Dispatcher

Suresh Khanna
Greenhorn

Joined: Jan 04, 2004
Posts: 16
Hi guys,
Why can't we use doPost() when using request dispatcher.
I have two servlets where the first servlet is dispatching request to second servlet. The servlets are working fine when i am using doGet() method for both. When i tried to use doPost() method in both of them i am getting the following error.
HTTP Status 405 - HTTP method GET is not supported by this URL
Jacky Chow
Ranch Hand

Joined: Sep 01, 2002
Posts: 63
hi Suresh,
I answered your question here http://www.coderanch.com/t/357764/Servlets/java/doPost-while-request-dispatcher


Jacky
Suresh Khanna
Greenhorn

Joined: Jan 04, 2004
Posts: 16
Hi Jacky,
Thank you for your answer.
I appreciate it.

Regards
Suresh K
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem when using request Dispatcher