@OverWrite BlogJava

            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理 ::
            128 隨筆 :: 0 文章 :: 29 評論 :: 0 Trackbacks
          Caucho Resin提供了最快的jsp/servlets運行平臺。它支持Servlet,XSL Filtering6并且具備XSLT和XPath1.0引擎。為方便開發人員能更方便的搭建一個易用的開發平臺,將Resin的配置案例如下:

          本文resin采用版本為:Resin 2.1.13
          本文所有代碼均已測試通過

          我的工程目錄結構如下:

          /(root)
              |--resin(resin根目錄)
              |        |--bin
              |        |--conf
              |        |      |--resin.conf(resin配置文件 今天的主角)
              |        |--lib
              |--src
                    |--java(用于放置java源文件)
                    |--test(測試文件目錄)
                    |--webapp(web應用的根目錄,將來doc-dir會指向這里)
                              |---WEB-INF
                                          |------classes
                                          |------lib
                                          |------web.xml(web配置文件)
                                          |------applicationContext.xml(其他配置文件)



          以下是resin.conf文件源碼
          <caucho.com>
          <log id='/logs' href='stderr:' timestamp='[%Y-%m-%d %H:%M:%S.%s]'/>

          <http-server error-log="logs/errors.log">
              
          <doc-dir>../src/webapp</doc-dir>
            
            
          <!-- the http port -->
            
          <http port='82'/>

            
          <host id=''>
              
          <web-app id='/'>
                  
          <work-dir>../../build/work</work-dir>
                  
          <temp-dir>../../build/tmp</temp-dir>
                  
          <cache-mapping url-pattern="/*" expires="2"/>
                  
          <class-update-interval>
                      100000000
                  
          </class-update-interval>
                  
          <jsp jsp-update-interval="1s"/>
                  
                  
          <classpath id='WEB-INF/classes'/>     

              
          </web-app>    
            
          </host>

          </http-server>
          </caucho.com>

          web.xml源代碼
          <?xml version="1.0" encoding="ISO-8859-1"?>
          <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd">
          <web-app>

              
          <display-name>Acme Corp</display-name>

              
          <filter>
                  
          <filter-name>webwork</filter-name>
                  
          <filter-class>com.opensymphony.webwork.dispatcher.FilterDispatcher</filter-class>
              
          </filter>

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

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

              
          <welcome-file-list>
                  
          <welcome-file>index.jsp</welcome-file>
                  
          <welcome-file>default.jsp</welcome-file>
                  
          <welcome-file>index.html</welcome-file>
              
          </welcome-file-list>

              
          <!--
                  This typically isn't required, as the taglib is included in webwork.jar.
                  If you really need a taglib configuration within web.xml, copy webwork/src/java/META-INF/taglib.tld
                  to the WEB-INF directory as webwork.tld.
               
          -->
              
          <!--taglib>
                  <taglib-uri>webwork</taglib-uri>
                  <taglib-location>/WEB-INF/webwork.tld</taglib-location>
              </taglib
          -->
          </web-app>

          posted on 2008-03-05 16:12 vesung 閱讀(11071) 評論(0)  編輯  收藏 所屬分類: Java
          主站蜘蛛池模板: 长葛市| 肃南| 庆云县| 岐山县| 福清市| 河池市| 太湖县| 昌平区| 垦利县| 抚顺县| 应用必备| 红桥区| 贵定县| 武陟县| 武功县| 昔阳县| 神池县| 鄂托克前旗| 普洱| 张北县| 黔西| 泰和县| 盖州市| 石楼县| 武宣县| 宝兴县| 长沙县| 新民市| 嘉禾县| 绥棱县| 漾濞| 肇源县| 商南县| 明溪县| 东方市| 昂仁县| 廊坊市| 九台市| 林甸县| 怀集县| 高邮市|