경로 - /WEB-INF/web.xml

//////////////////////////////////////////////////////////////

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.4"
xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/j2ee http://java.sun.co...m/xml/ns/j2ee/web-app_2_4.xsd">

<display-name>Web</display
-name>

<!-- 스트럿츠2 환경 정의 시작 -->
<filter>
<filter-name>struts</filter-name>
<filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class>
</filter>

<filter-mapping>
<filter-name>struts</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>

<security-constraint>
<web-resource-collection>
<web-resource-name>PreventViewingJSPs</web-resource-name>
<description>웹 사용자가 JSP 파일로 직접 접근할 수 없도록 한다.</description>
<url-pattern>*.jsp</url-pattern>
<!-- <http-method>GET</http-method> -->
<http-method>POST</http-method>
</web-resource-collection>
<auth-constraint>
<role-name></role-name>
</auth-constraint>
</security-constraint>
<!-- 스트러츠 환경 정의 끝 -->

<!-- 스프링 -->
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>



/WEB-INF/config/applicationContext.xml



,/WEB-INF/config/applicationContext-ibatis.xml



,/WEB-INF/classes/config/applicationContext-emp.xml



</param-value>
</context-param>

<listener>
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
</listener>

<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
</web-app>

저작자 표시
*1  ... *72  *73  *74  *75  *76  *77  *78 
I am
분류 전체보기 (78)
자바 (69)
아이폰 & 아이패드 (3)
감동 글 (6)
count total 36,464, today 2, yesterday 27

티스토리 툴바