jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Java » Servlets
Bookmark "Simple doGet and doPost confusion" Watch "Simple doGet and doPost confusion" New topic

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

Joined: Jan 10, 2002
Posts: 63865

What else would you expect?

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