wood burning stoves 2.0*
The moose likes Servlets and the fly likes how it will recognize doGet() or doPost() 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 "how it will recognize doGet() or doPost()" Watch "how it will recognize doGet() or doPost()" New topic
Author

how it will recognize doGet() or doPost()

S.Reddisekhar Reddy
Greenhorn

Joined: Jan 05, 2012
Posts: 29
if we use rd.forward("ServletName") or rd.include("ServletName") then how it will decide to call doGet() or doPost() ,I hope if we didn't specify any it will call doGet() is it right?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60046
    
  65

As neither creates a new request, the HTTP method is unchanged.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how it will recognize doGet() or doPost()
 
Similar Threads
IllegalStateException error
Applet -> Servlet Communication
Servlet Forward
can we call a doPost() inside a doGet(). ?
Using get() and post() together