Last active
May 7, 2016 07:16
-
-
Save dungdm93/5ac48796a0cd252c6374be582488d2b3 to your computer and use it in GitHub Desktop.
Sample web.xml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<web-fragment 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-fragment_3_0.xsd"> | |
</web-fragment> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!-- Copyright 2006 Sun Microsystems, Inc. All rights reserved. --> | |
<web-app version="3.1" | |
xmlns="http://xmlns.jcp.org/xml/ns/javaee" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_3_1.xsd"> | |
<display-name>webapps-caching</display-name> | |
<servlet> | |
<servlet-name>ServCache</servlet-name> | |
<servlet-class>samples.webapps.caching.ServCache</servlet-class> | |
<load-on-startup>0</load-on-startup> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>ServCache</servlet-name> | |
<url-pattern>/ServCache</url-pattern> | |
</servlet-mapping> | |
<session-config> | |
<session-timeout>30</session-timeout> | |
</session-config> | |
<jsp-config> | |
<taglib> | |
<taglib-uri>/com/sun/web/taglibs/cache</taglib-uri> | |
<taglib-location>/WEB-INF/sun-web-cache.tld</taglib-location> | |
</taglib> | |
</jsp-config> | |
</web-app> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference