Two Laptop Bag*
The moose likes Servlets and the fly likes Simple doGet and doPost confusion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Simple doGet and doPost confusion" Watch "Simple doGet and doPost confusion" New topic
Author

Simple doGet and doPost confusion

Hardik Trivedi
Ranch Hand

Joined: Jan 30, 2010
Posts: 252
Hi all genius people,

I am working in jsp servlet.I have a working knoledge of it.
Few days ago I came across at very strange things.

What I was trying to do is to call a servlet from the URL itself. So it is obvious that servlet's doGet method will be called.
But when I dispatch the request to another servlet at that time also the doGet method of called servlet is called.

My question is why is it so? ???
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61588
    
  67

What else would you expect?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Simple doGet and doPost confusion