즐겨찾기   
 
   
 
 
 

  모듈 사용 방법
    * Bright Spring Version 

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

  개발 지원
    * Q&A
 
 
 

 



Bright > 모듈 환경 세팅  > 환경 파일 설정 > struts-config.xml 설정  
 
 1.struts-config.xml 설정
 /WEB-INF 밑에 struts-config.xml를  아래 처럼 정의한다.
 
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.1//EN"
          "http://jakarta.apache.org/struts/dtds/struts-config_1_1.dtd">
<struts-config>
 <!-- ========== Form Bean - Start =================================== -->
 <form-beans>
 </form-beans>
 <!-- ========== Form Bean - End =================================== -->
 
 <!-- ========== Global Exception  - Start =================================== -->
 <global-exceptions>
  <exception key="ABSTRACT" type="java.lang.Exception" path="/jsp/error/error.jsp"/>
 </global-exceptions>
 <!-- ========== Global Exception - End =================================== -->
 <!-- ========== Global Forward  - Start =================================== -->
 <global-forwards> 
  <forward name="locationGo" path="/jsp/lib/page/locationGo.jsp"/>
  <forward name="fileDown" path="/jsp/lib/file/site_download.jsp" />
 </global-forwards>
 <!-- ========== Global Exception - End =================================== -->
 
 <!-- ========== Action Mapping - Start ============================== -->
 <action-mappings> 
 
     <!-- Index Page -  JSP Framework - Version -->
  <!--
  <action  path="/Index"  forward="/indexPage.jsp" scope="session" validate="false" parameter="cmd">
  </action>
   -->
     <!-- Index Page -  Struts Framework - Version -->
  <action  type="net.mymyboard.framework.struts.action.IndexAction"   path="/Index" scope="session" validate="false" parameter="cmd">
   <forward name="IndexPage" path="/indexPage.jsp" redirect="false"/>
  </action>
 
 
     <!-- Simple Page -  JSP Framework - Version -->
  <!--
  <action  path="/Simple"  forward="/Simple/index.jsp" scope="session" validate="false" parameter="cmd">
  </action>
   -->
     <!-- Simple Page -  Struts Framework - Version -->
  <action  type="net.mymyboard.framework.struts.action.SimpleAction"   path="/Simple" scope="session" validate="false" parameter="cmd">
   <forward name="page_htmlControl" path="/Simple/indexHtmlControl.jsp" redirect="false"/>
  </action> 
    
 </action-mappings>
    <!-- ========== Action Mapping - End ============================== -->

 <!-- ========== Tiles plug-in setting - Start =================== -->
 <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor"  />
 <plug-in className="org.apache.struts.tiles.TilesPlugin" >
  <set-property property="definitions-config" value="/WEB-INF/tiles-defs.xml" />
  <set-property property="definitions-debug" value="2" />
  <set-property property="definitions-parser-details" value="2" />
  <set-property property="definitions-parser-validate" value="true" />
 </plug-in>
    <!-- ========== Tiles plug-in setting - End =================== -->
 
     <!-- ========== Validator plug-in setting - Start =================== -->
 <plug-in className="org.apache.struts.validator.ValidatorPlugIn">
  <set-property property="pathnames"
        value="/WEB-INF/validator-rules.xml"/>
 </plug-in>
    <!-- ========== Validator plug-in setting - End =================== -->
</struts-config>
 
 
 
 



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