I wish to know how to set globaly the page encoding of jsp response in all jsp of my project.
If I add:
<%@page contentType="text/html" pageEncoding="UTF-8"%>
It works fine and the server properly send the content in UTF-8, but I don't want to put this in every single page.
I tried this in web.xml
<jsp-config> | ||
<jsp-property-group> | ||
<url-pattern>*.jsp</url-pattern> | ||
<page-encoding>UTF-8</page-encoding> | ||
</jsp-property-group> |
</jsp-config>
but JBoss apears to simple ignore it.