hi
The doHead method in HttpSerlet is a
specialized form of the doGet method that returns only the headers produced
by the doGet method.
vj

> ----------
> From:         Suresh[SMTP:[EMAIL PROTECTED]]
> Reply To:     A mailing list for discussion about Sun Microsystem's Java
> Servlet API Technology.
> Sent:         Friday, March 15, 2002 10:20 AM
> To:   [EMAIL PROTECTED]
> Subject:      Invoke doHead/doOptions methods of a servlet
>
> Hi,
> javax.servlet.http.HttpServlet has a method doHead(HttpServletRequest
> req,HttpServletResponse resp)
> which says this method receives an HTTP HEAD request from the protected
> service method and handles
> the request.
> The client sends a HEAD request when it wants to see only the headers of a
> response.
> There are other methods as well like doOptions(HttpServletRequest
> req,HttpServletResponse resp)
> which says
> this method is called by the server (via the service method) to allow a
> servlet to handle a OPTIONS
> request.
> The OPTIONS request determines which HTTP methods the server supports and
> returns an appropriate
> header.
>
> How can I invoke these methods of the servlet from browser.
> I tried using
>     <form name="form_name" method="head" action="servelt_url_here" >
> but it didnt work, and the request was directed to doGet method (which is
> default method from
> browser ) of servlet.
> I tried this using IE 5.0 , IBM Websphere 3.5 .
>
> Thanks
> -Suresh
>
> __________________________________________________________________________
> _
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff SERVLET-INTEREST".
>
> Archives: http://archives.java.sun.com/archives/servlet-interest.html
> Resources: http://java.sun.com/products/servlet/external-resources.html
> LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
>

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to