즐겨찾기   
 
   
 
 
 

  모듈 사용 방법
    * Bright Spring Version 

  모듈 환경 세팅
    * 모듈 배치
     - bright-config.xml
     - struts-config.xml
     - web.xml
     - Tomcat 설정
    * Eclipse 설정

  개발 지원
    * Q&A
 
 
 

 



Bright > 모듈 환경 세팅  > 환경 파일 설정 > web.xml 설정  
 
 1.web.xml 설정
 /WEB-INF 밑에 web.xml를  아래 처럼 정의한다.
 
<?xml version="1.0" encoding="UTF-8"?>
<web-app 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">
 
 <!-- SiteInfo Servlet - Init -->
 <servlet>
  <servlet-name>SiteInfo Servlet</servlet-name>
  <servlet-class>
   net.mymyboard.framework.bright.siteInfo.SiteInfoInitServlet
   </servlet-class>
  <load-on-startup>3</load-on-startup>
 </servlet>
 <!-- =============================================== -->
 <!--  Welcome File List -->
 <!-- =============================================== -->
 <welcome-file-list>
  <welcome-file>index.jsp</welcome-file>
 </welcome-file-list>
 
 <!-- =============================================== -->
 <!-- Servlets -->
 <!-- =============================================== -->
 <!-- Struts Action Servlet --> 
 <servlet>
  <servlet-name>action</servlet-name>
  <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
  
  
  <init-param>
   <param-name>application</param-name>
   <param-value>ApplicationResources</param-value>
  </init-param>
  <!--/Service/ 주소 접근 가능하게 설정-시작-->
  <init-param>
   <param-name>config/Service</param-name>
   <param-value>/WEB-INF/struts-config.xml</param-value>
  </init-param>
       <!--/Service/ 주소 접근 가능하게 설정-끝--> 
  <init-param>
   <param-name>debug</param-name>
   <param-value>2</param-value>
  </init-param>
  <init-param>
   <param-name>detail</param-name>
   <param-value>2</param-value>
  </init-param>
  <init-param>
   <param-name>validate</param-name>
   <param-value>true</param-value>
  </init-param>
  <load-on-startup>1</load-on-startup>
 </servlet>
 
 
 <!-- =============================================== -->
 <!-- Servlet Mappings -->
 <!-- =============================================== -->
 <!-- Struts -->
 <servlet-mapping>
  <servlet-name>action</servlet-name>
  <url-pattern>*.do</url-pattern>
 </servlet-mapping>
</web-app>
 
 
 



  Copyright 2008-2011 (c) G-line Communications Corp All Rights Reserved.