aspose file tools*
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 EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 60053
    
  65

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
 
Similar Threads
question 994784367093
RequestDispatcher to servlet
overriding both doget() and dopost()
how to access other than doGet and doPost
Forwarding requests between servlets