Reply To: File upload size / request size restriction?

Splash Forums PrettyFaces Users File upload size / request size restriction? Reply To: File upload size / request size restriction?

#26242

Georgi Cholakov
Participant

web.xml:

<?xml version=”1.0″ encoding=”UTF-8″?>
<web-app version=”3.0″ xmlns=”http://java.sun.com/xml/ns/javaee” xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=”http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd“>
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<context-param>
<param-name>facelets.SKIP_COMMENTS</param-name>
<param-value>true</param-value>
</context-param>

<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>faces/index.xhtml</welcome-file>
</welcome-file-list>

<env-entry>
<env-entry-name>jdbcresource</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>jdbc/StockAdvisor</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>languages</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>English, Български</env-entry-value>
</env-entry>
<env-entry>
<env-entry-name>languages_codes</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>en, bg</env-entry-value>
</env-entry>
<resource-ref>
<res-ref-name>jdbc/StockAdvisor</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</web-app>