This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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: 61103
    
  66

What else would you expect?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Simple doGet and doPost confusion