I’m using Java 6, JBoss 7.1.3 and Spring 3.2.11.RELEASE. Despite the fact that we set this in our application context
<bean id="systemPrereqs"
class="org.springframework.beans.factory.config.MethodInvokingFactoryBean">
<property name="targetObject" value="#{@systemProperties}" />
<property name="targetMethod" value="putAll" />
<property name="arguments">
<!-- The new Properties -->
<util:properties>
<prop key="org.apache.catalina.connector.URI_ENCODING">UTF-8</prop>
</util:properties>
</property>
</bean>
I notice on my JSPs, special characters aren’t rendered correctly unless we specify a
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
at the top of the JSP page. This is fine for one JSP, but is cumbersome to have to go through the entire application adding these directives. Is there a more global place I can specify this, like in a Spring context or somewhere, that will universally add the above directive to all our JSP pages?