[jetty-dev] [jira] (JETTY-1501) Setting custom error response message changes page title

"Jason Resch (JIRA)" <[email protected]>
Newsgroups gmane.comp.java.jetty.general
Message-ID <2110929713.56680.1332441663059.JavaMail.j2ee-jira@codehaus01.managed.contegix.com>
Jason Resch created JETTY-1501:
----------------------------------

             Summary: Setting custom error response message changes page title
                 Key: JETTY-1501
                 URL: https://jira.codehaus.org/browse/JETTY-1501
             Project: Jetty
          Issue Type: Bug
          Components: Servlet
    Affects Versions: 7.5.4
            Reporter: Jason Resch
            Priority: Minor


There is a method in org.eclipse.jetty.server.Response: public void sendError(int code, String message)

When message is not null it gets placed in both the title and body of the page.  In other servers, such as Tomcat, the default behavior is to change the body but leave the title unchanged.  For example, Tomcat has a property org.apache.coyote.USE_CUSTOM_STATUS_MSG_IN_HEADER which defaults to false.  It may be worth adding such an option in Jetty, or changing the behavior of sendError such that the message is not inserted into the title.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.