[jetty-dev] [jira] (JETTY-1501) Setting custom error response message changes page title
"Jan Bartel (JIRA)" <[email protected]>
| Newsgroups | gmane.comp.java.jetty.general |
|---|---|
| Message-ID | <763271169.56747.1332451986529.JavaMail.j2ee-jira@codehaus01.managed.contegix.com> |
[ https://jira.codehaus.org/browse/JETTY-1501?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jan Bartel updated JETTY-1501:
------------------------------
Issue Type: Improvement (was: Bug)
> Setting custom error response message changes page title
> --------------------------------------------------------
>
> Key: JETTY-1501
> URL: https://jira.codehaus.org/browse/JETTY-1501
> Project: Jetty
> Issue Type: Improvement
> 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