File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes doGet() and doPost() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Groovy Fundamentals video training course this week in the Groovy forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "doGet() and doPost()" Watch "doGet() and doPost()" New topic

doGet() and doPost()

eswar kumar
Ranch Hand

Joined: Oct 20, 2002
Posts: 98
who will decide to use doGet() or doPost() methods ?
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1137

The HTTP request that is passed to the servlet.
Good Luck,
Praful Thakare
Ranch Hand

Joined: Feb 10, 2001
Posts: 641
form tag has an attribute called method as
<form action="serlvetname" method="get"> will result in calling doGet.
<form action="serlvetname" method="Post"> will result in calling doPost
[ November 19, 2003: Message edited by: Praful Thakare ]

All desirable things in life are either illegal, banned, expensive or married to someone else !!!
I agree. Here's the link:
subject: doGet() and doPost()