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 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 Android Security Essentials Live Lessons this week in the Android 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: 60810
    
  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
Servlet Forward
Applet -> Servlet Communication
can we call a doPost() inside a doGet(). ?
Using get() and post() together