Forums Register Login

doPost or doGet

+Pie Number of slices to send: Send
Is sendderict and jsp:forward happens by doPost or doGet
Regards,
aakash
+Pie Number of slices to send: Send
Since redirect uses just a URL, it has to be doGet - forward uses the existing request which already has a GET or POST method assigned to it.
See javax.servlet.HttpServletRequest.getMethod()
Bill
Let's go to the waterfront with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 794 times.
Similar Threads
what is the difference between doGet and doPost?
POST or GET
Servlet - second assignment
doPost and doGet
doGet,doPost
More...

All times above are in ranch (not your local) time.
The current ranch time is
Apr 16, 2024 00:32:23.