Skip to content
dlecan edited this page Sep 19, 2012 · 11 revisions

#FAQ

Which Play2 HTTP features are available on Servlet containers ?

See feature matrix.

Which servlet containers are compatible with the plugin ?

See server compatibility matrix.

How to deploy Play 2.0 applications on JBoss 7 @Cloudbees ?

After each deployment of you application, you need to run this :

bees app:update my-app disableProxyBuffering=true

How to set POST and GET data to use UTF-8 encoding?

Add this in your web.xml (must be located in APP_HOME/war/WEB-INF):

...
    <filter>
        <filter-name>encodingFilter</filter-name>
        <filter-class>org.apache.catalina.filters.SetCharacterEncodingFilter</filter-class>
        <init-param>
            <param-name>encoding</param-name>
            <param-value>utf-8</param-value>
        </init-param>
        <async-supported>true</async-supported>
    </filter>

    <filter-mapping>
      <filter-name>encodingFilter</filter-name>
      <url-pattern>/*</url-pattern>
    </filter-mapping>
...