my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets 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: 60741
    
  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
Applet -> Servlet Communication
can we call a doPost() inside a doGet(). ?
Using get() and post() together
Servlet Forward
IllegalStateException error