Differences
This shows you the differences between two versions of the page.
|
java:new-app [06/03/2015 17:09] Anthony Arents [applicationname-servlet.xml] |
java:new-app [04/10/2017 11:37] (current) Anthony Arents [New Java Web Applications] |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== New Java Web Applications ====== | ====== New Java Web Applications ====== | ||
| + | |||
| + | End of life December 2016. | ||
| If you are making a company project : | If you are making a company project : | ||
| Line 14: | Line 16: | ||
| * Tomcat 7 | * Tomcat 7 | ||
| * Use Java 7 for compiling, I recommend Java 8 for running tomcat (no permgen errors) ;-). | * Use Java 7 for compiling, I recommend Java 8 for running tomcat (no permgen errors) ;-). | ||
| + | |||
| + | Tomcat settings \\ | ||
| + | <code>-Xmx2048m -Xms512m -XX:MaxPermSize=768m -Dcom.sun.xml.ws.transport.http.client.HttpTransportPipe.dump=true</code> | ||
| ====== Package structure : ====== | ====== Package structure : ====== | ||
| Line 1308: | Line 1313: | ||
| <bean id="jspViewResolver" | <bean id="jspViewResolver" | ||
| - | class="org.springframework.web.servlet.view.InternalResourceViewResolver"> | + | class="org.springframework.web.servlet.view.InternalResourceViewResolver"> |
| - | <property name="prefix" value="/WEB-INF/jsp/"/> | + | <property name="prefix" value="/WEB-INF/jsp/"/> |
| - | <property name="suffix" value=".jsp" /> | + | <property name="suffix" value=".jsp" /> |
| </bean> | </bean> | ||
| Line 1365: | Line 1370: | ||
| </code> | </code> | ||
| + | You are free to change the implementation of the loginpage, \\ | ||
| + | you'll find it easier to rely on an old fashioned form submit to login a user, the system will then redirect to app.html (app.jsp) | ||
| ===== App ===== | ===== App ===== | ||