This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Servlets and the fly likes http method 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 "http method" Watch "http method" New topic
Author

http method

Nelson Nadal
Ranch Hand

Joined: Jun 06, 2002
Posts: 169
Usually, when a servlet are referred by RequestDispatcher through forward() or include(), what HTTP method are used? GET OR POST? Thanks.
Jeroen Wenting
Ranch Hand

Joined: Oct 12, 2000
Posts: 5093
It all depends on the original request type.
forward() forwards the request from one servlet to another. If the request was a POST request doPost() will get called on both, if it was a GET request doGet() will get called on both.


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: http method
 
Similar Threads
Hidden variable problem
No- HTTP method element??
Sharpen Your Pencil - PN 658
Query String in Request Dispatcher
problem regarding empty auth-constraint tag