이 사이트는 전자정부 표준프레임워크 구버전(1.0 ~ 4.3) 가이드 아카이브입니다. 내용은 더 이상 갱신되지 않습니다. 최신 내용은 최신 버전 문서에서 확인하세요.

공통컴포넌트 3.10

공통컴포넌트 커스터마이징(servlet 2.5 downgrade)

공통컴포넌트 커스터마이징(servlet 2.5 downgrade)

공통컴포넌트는 3.8 버전은 Servlet 3.1기준으로 만들어 졌지만 Servlet2.5를 호환합니다.
Servlet2.5의 web.xml에서 첫번재 listener가 되로록 contextConfigLocation위에 EgovServletContextListener를 추가 한다.

기타 자세한 인증 및 권한 설정은 공통컴포넌트 web.xml 설정 가이드 참고
Servlet2.5 변환 예제 다운로드 : downgrade_servlet_2_5.zip 새 창 열림

<?xml version="1.0" encoding="UTF-8"?>
<web-app id="WebApp_ID" version="2.5" xmlns="http://java.sun.com/xml/ns/javaee"
         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
                        .
                        .
                        .
	<!-- EgovServletContextListener를 web.xml 첫번재 listener가 되로록 contextConfigLocation 상단에 추가 -->
	<!-- spring.profiles.active registeration  Globals.DbType for globals.properties -->
	<listener>
    	    <listener-class>egovframework.com.cmm.context.EgovWebServletContextListener</listener-class>
   	</listener>  
 
    	<context-param>
     	   <param-name>contextConfigLocation</param-name>
     	   <param-value>classpath*:egovframework/spring/com/**/context-*.xml</param-value>
    	</context-param>
 
    	<listener>
     	   <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
    	</listener>
                        .
                        .
                        .