yoursyun
Web.xml 본문
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app 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_2_5.xsd"
- version="2.5">
- <!-- JDBC 연결을 위한 정보 -->
- <resource-ref>
- <description>OracleDatasource</description>
- <res-ref-name>jdbc/myoracle</res-ref-name>
- <res-type>javax.sql.DataSource</res-type>
- <res-auth>Container</res-auth>
- </resource-ref>
- <context-param>
- <param-name>ds</param-name>
- <param-value>jdbc/myoracle</param-vlaue>
- </context-param>
- <!-- Filter 설정 (Encoding Filter) -->
- <filter>
- <filter-name>Encoding Filter</filter-name>
- <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
- <init-param>
- <param-name>encoding</param-name>
- <param-value>UTF-8</param-value>
- </init-param>
- </filter>
- <filter-mapping>
- <filter-name>Encoding Filter</filter-name>
- <servlet-name>action</servlet-name>
- </filter-mapping>
- <!-- servlet 설정 -->
- <servlet>
- <servlet-name>action</servlet-name>
- <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
- <init-param>
- <param-name>config</param-name>
- <param-value>/WEB-INF/struts-config.xml</param-value>
- </init-param>
- <init-param>
- <param-name>debug</param-name>
- <param-value>3</param-value>
- </init-param>
- <init-param>
- <param-name>detail</param-name>
- <param-value>3</param-value>
- </init-param>
- <load-on-startup>0</load-on-startup>
- </servlet>
- <servlet-mapping>
- <servlet-name>action</servlet-name>
- <url-pattern>*.do</url-pattern>
- </servlet-mapping>
- <!-- 세션 기간 설정 -->
- <session-config>
- <session-timeout>30</session-timeout>
- </session-config>
- <!-- 시작페이지 설정 -->
- <welcome-file-list>
- <welcome-file>index.jsp</welcome-file>
- </welcome-file-list>
- <!-- 존재하지 않는 페이지, 404에러시 처리 페이지 설정 -->
- <error-page>
- <error-code>404</error-code>
- <location>/404.jsp</location>
- </error-page>
- <!-- 500에러시 처리 페이지 설정 -->
- <error-page>
- <error-code>500</error-code>
- <location>/500.jsp</location>
- </error-page>
- <!-- NullpointException발생시 처리 페이지 설정 -->
- <error-page>
- <exception-type>java.lang.NullPointerException</exception-type>
- <location>/null.jsp</location>
- </error-page>
- <!-- 태그 라이브러리 설정 (JSTL"coreTag"을(를) 사용)-->
- <jsp-config>
- <taglib>
- <taglib-url>http://java.sun.com/jsp/jstl/core</taglib-url>
- <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
- </taglib>
- </jsp-config>
- </web-app>
반응형