Over the last year, I developed a WebDAV (http://www.webdav.org) server by using
a servlet to extend HTTP for a number of WebServers including Apache. For
details, see http://alphaworks.ibm.com/tech/dav4j. I am now updating DAV4J to
use WebSphere AppServer 3.0 which is based on version 2.1 of the servlet API.

My problem is that HttpServletResponse.setStatus(int, String) has been
deprecated. This prevents servlets from being used to extend HTTP as it is no
longer possible for the servlet to set the HTTP status response. I can use
setStatus(int), but this doesn't set the short message required by HTTP. This is
not the same method as sendError() as it does not send back any formatted HTML.
It only sets the status line (the first line) returned in the HTTP response.
That is, setStatus() is part of the HTTP protocol support, not a facility for
servlet writers to send HTML entity response bodies back to the client. For
example, setStatus(200, "OK") would cause

200 OK

to be sent as the first line in the HTTP response. Deprecating setStatus(int,
String) will prevent DAV4J from being updated to the latest servlet
specification, and will prevent other extensions to HTTP by servlets. I realize
servlets were designed primarily to support HTTP server extensions through
processing dynamic URL references, but they can easily be used to extend HTTP
methods as well. It would be a real loss to loose this capability, especially
with all the activity associated with WebDAV and its extensions. Servlets are a
great way to use Java to experiment with this emerging standard.

Can we get this method back?

___________________________________________________________________________
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