dev@glassfish.java.net

error-page encoding problem

From: Dmitry Mozheyko <mozheyko_d_at_mail.ru>
Date: Wed, 06 Dec 2006 13:54:53 +0300

Hi all!
I use glassfish-v2-b27 and i need to custom error page
web.xml:

...
    <error-page>
        <exception-type>java.lang.Throwable</exception-type>
        <location>/error.jsp</location>
    </error-page>
    <error-page>
        <error-code>403</error-code>
        <location>/error403.jsp</location>
    </error-page>
    <error-page>
        <error-code>404</error-code>
        <location>/error404.jsp</location>
    </error-page>
...



Both error403.jsp and error404.jsp pages correctly showing UTF-8 symbols, but error.jsp:

<%_at_page contentType="text/html"%>
<%_at_page pageEncoding="UTF-8"%>
<jsp:include page="jspf/header.jsp" />
<b>Ошибка:</b><br />
<%=((Throwable)request.getAttribute("javax.servlet.error.exception")).toString()%><br />
<button onclick="goback()">Назад</button>
<jsp:include page="jspf/footer.jsp" />



Show '?' signes instead russian symbols.

How to fix it?