There are multiple 'methods' in HTTP which you can use to call web respources. GET and POST and the most common.
'Typically' (and this is a bit of a generalisation) resources get called using 'GET', although the actual method in some cases is not important. In the case where you don't care, some people allow the same piece of code to execute for both the 'GET' and 'POST' calls.
It is eqivalent to:
Personally I don't do this. Servlets respond to GET, POST, or both, but when it responds to both it behaves differently for each. Others will disagree.
posted 11 years ago
Originally posted by Shrawan Bhageria: doPost(req.res);
i think you mean dePost(req,res);
when you submit data and you dont want them to appear in the url you call the doPost method because the doGet method shows every thing in the url.
hope this help you
Create symphonies in seed and soil. For this tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads