dannyc      01/04/12 12:41:16

  Modified:    src/share/javax/servlet/http HttpServletResponse.java
  Log:
  edit change in javadocs for the sendError methods: The javadocs for sendError(int, 
String) and sendError(int) were the wrong way round.
  
  Revision  Changes    Path
  1.2       +12 -14    
jakarta-servletapi-4/src/share/javax/servlet/http/HttpServletResponse.java
  
  Index: HttpServletResponse.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-servletapi-4/src/share/javax/servlet/http/HttpServletResponse.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- HttpServletResponse.java  2001/01/09 03:24:19     1.1
  +++ HttpServletResponse.java  2001/04/12 19:41:13     1.2
  @@ -175,9 +175,14 @@
       public String encodeRedirectUrl(String url);
   
       /**
  -     * Sends an error response to the client using the specified status
  -     * code and descriptive message.  The server generally creates the 
  -     * response to look like a normal server error page.
  +     * Sends an error response to the client using the specified
  +     * status clearing the buffer.  The server defaults to creating the 
  +     * response to look like an HTML-formatted server error page containing the 
specified message, setting the content type
  +     * to "text/html", leaving cookies and other headers unmodified.
  +     *
  +     * If an error-page declaration has been made for the web application
  +     * corresponding to the status code passed in, it will be served back in 
  +     * preference to the suggested msg parameter. 
        *
        * <p>If the response has already been committed, this method throws 
        * an IllegalStateException.
  @@ -188,21 +193,13 @@
        * @param        msg     the descriptive message
        * @exception    IOException     If an input or output exception occurs
        * @exception    IllegalStateException   If the response was committed
  -     *                                               before this method call
        */
  -
  +   
       public void sendError(int sc, String msg) throws IOException;
   
       /**
  -     * Sends an error response to the client using the specified
  -     * status clearing the buffer.  The server defaults to creating the 
  -     * response to look like an HTML-formatted server error page, setting the 
content type
  -     * to "text/html", leaving cookies and other headers unmodified.
  -     *
  -     * If an error-page declaration has been made for the web application
  -     * corresponding to the status code passed in, it will be served back in 
  -     * preference to the suggested msg parameter. 
  -     *
  +     * Sends an error response to the client using the specified status
  +     * code and clearing the buffer. 
        * <p>If the response has already been committed, this method throws 
        * an IllegalStateException.
        * After using this method, the response should be considered
  @@ -211,6 +208,7 @@
        * @param        sc      the error status code
        * @exception    IOException     If an input or output exception occurs
        * @exception    IllegalStateException   If the response was committed
  +     *                                               before this method call
        */
   
       public void sendError(int sc) throws IOException;
  
  
  

Reply via email to