Manning's Countdown to 2014
. Use discount code crdotd14 all month for 50% off every deal.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Web Component Certification (SCWCD/OCPJWCD)
How to submit a request in order to handled by doHead ?
Joined: Aug 30, 2002
Feb 07, 2005 09:49:00
In the html form, use method="POST" then the request will be handled by doPost() method. If use method="GET" then it will be handled by doGet() method. Then how to set the method so that the request is handled by doHead() method ?
Joined: Nov 07, 2000
Feb 11, 2005 23:18:00
We have mainly 2 method get/post.
Even if you call HEAD method server has default implementaion and call doGet method.
If you want to try that make one siple HTML with method="post" and call
in that you can write
System.out.println("GET WILL EXECUTE");
If you want more referace about that use Dustin Callaway book.
Eat JAVA, Drink JAVA, Sleep Java
I agree. Here's the link:
subject: How to submit a request in order to handled by doHead ?
doHead() example needed
How to deal with doHead method
when and how to use a 'head' request?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013