| Author |
doGet() Request,Response and doPost() Request,Response
|
Arjun Reddy
Ranch Hand
Joined: Nov 10, 2007
Posts: 622
|
|
Hi, I have a few questions. 1). I always wondered what a doGet()'s request and response does and what a doPost()'s request and response does? Any ideas on this? 2). Is it ok if I use doPost() all the time instead of a doGet() due to it's benefits when the two methods are compared? 3). writing all the code in doPost() and calling it from doGet(), what is the advantage in this? Thanks. Thanks. [ July 10, 2008: Message edited by: Arjun Reddy ]
|
Be Humble... Be Nice.
|
 |
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56192
|
|
1) This question makes no sense to me. 2) If you don't implement doGet(), GET requests will not be served. If all you are going to make is POSTs, that's fine. Otherwise... 3) Then both GETs and POSTs are handled identically.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
|
Arjun, these are like basics...as I told in the other post, please pick up Head First Servlets and JSP and I'm sure you will find answers.
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
 |
|
|
subject: doGet() Request,Response and doPost() Request,Response
|
|
|