2011년 8월 23일 화요일
함수명파라미터, 인터셉터, FLEX 설정 셋팅-1(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.com/xml/ns/j2ee/web-app_2_4.xsd">
<display-name>Framework-web</display-name>
<!-- Spring 환경 설정 파일 정보의 위치를 지정 -->
<!-- 공통 설정 파일 -->
<!-- /WEB-INF/config/spring/common 디렉토리 밑에 다음 두개의 설정 파일이 있어야 한다.
context-secframework.xml ( sub framework 설정 파일 ),
context-spring_security-2.0.4-securityext-core.xml ( spring security 설정 파일 )
-->
<!-- 테스트용 프로그램 설정 파일( 이부분에 어플리케이션 설정 파일이 위치 한다. ) -->
<context-param>
<param-name>log4jConfigLocation</param-name>
<param-value>/WEB-INF/log4j.xml</param-value>
</context-param>
<context-param>
<param-name>contextConfigLocation</param-name>
<param-value>/WEB-INF/classes/config/spring/**/context-*.xml
</param-value>
</context-param>
.
<!-- Encoding Filter 지정 : utf-8을 기본값으로 사용 -->
<filter>
<filter-name>encodingFilter</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>
<!-- Spring Security를 위한 FilterChain 설정 -->
<!-- filter>
<filter-name>springSecurityFilterChain</filter-name>
<filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>
</filter -->
<!-- Encoding filter를 적용할 url pattern 정의 : 모든 요청에 대해서 처리함 -->
<filter-mapping>
<filter-name>encodingFilter</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Spring FilterChain을 적용할 url pattern 정의 : forward와 request에 대한 모든 요청에 대해서 처리함 -->
<!-- filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>FORWARD</dispatcher>
<dispatcher>REQUEST</dispatcher>
</filter-mapping -->
<listener>
<listener-class>
org.springframework.web.util.Log4jConfigListener
</listener-class>
</listener>
<listener>
<listener-class>
org.springframework.web.context.ContextLoaderListener
</listener-class>
</listener>
<!-- servlet-secframework.xml : 특화 프레임워크 서블릿 설정파일 -->
<!-- 기타 : 어플이케이션 설정 파일 -->
<servlet>
<servlet-name>action</servlet-name>
<servlet-class>
org.springframework.web.servlet.DispatcherServlet
</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/classes/config/springmvc/secframework/servlet-secframework.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-test.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-main.xml
<!--
,/WEB-INF/classes/config/springmvc/dmce/servlet-edp.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-edu.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-intro.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-idx.xml
,/WEB-INF/classes/config/springmvc/test-servlet.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-itn.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-smn.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-eds.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-fre.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-thb.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-uln.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-rds.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-sup.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-fed.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-mkt.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-hsm.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-sot.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-cmn.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-cmh.xml
,/WEB-INF/classes/config/springmvc/dmce/servlet-eln.xml
-->
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<!-- Http Flex Session attribute and binding listener support -->
<listener>
<listener-class>flex.messaging.HttpFlexSession</listener-class>
</listener>
<!-- MessageBroker Servlet -->
<servlet>
<servlet-name>MessageBrokerServlet</servlet-name>
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
<init-param>
<param-name>contextConfigLocation</param-name>
<param-value>
/WEB-INF/classes/config/flex/dmce/idx-flex.xml,
/WEB-INF/classes/config/flex/dmce/edp-flex.xml,
/WEB-INF/classes/config/flex/dmce/rds-flex.xml,
/WEB-INF/classes/config/flex/dmce/edu-flex.xml,
/WEB-INF/classes/config/flex/dmce/main-flex.xml
</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>MessageBrokerServlet</servlet-name>
<url-pattern>/messagebroker/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>dwr</servlet-name>
<servlet-class>org.directwebremoting.spring.DwrSpringServlet</servlet-class>
<init-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>crossDomainSessionSecurity</param-name>
<param-value>false</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>action</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>dwr</servlet-name>
<url-pattern>/dwr/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>blog</servlet-name>
<servlet-class>dmce.hsm.common.BlogForwardSvlt</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>blog</servlet-name>
<url-pattern>/hsm/blog/*</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.jsp</welcome-file>
</welcome-file-list>
<login-config>
<auth-method>BASIC</auth-method>
</login-config>
<taglib>
<taglib-uri>freshManTaglib</taglib-uri>
<taglib-location>/WEB-INF/freshManTag.tld</taglib-location>
</taglib>
</web-app>
피드 구독하기:
댓글 (Atom)
댓글 없음:
댓글 쓰기