@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
          主站蜘蛛池模板: 凤凰县| 科技| 彝良县| 尉犁县| 易门县| 大同市| 岑溪市| 泽普县| 呼和浩特市| 千阳县| 高清| 正镶白旗| 济阳县| 三明市| 泰兴市| 乌兰浩特市| 措勤县| 岚皋县| 双江| 永寿县| 蒙城县| 兴城市| 玉树县| 莎车县| 绵阳市| 深泽县| 大姚县| 交城县| 府谷县| 遵化市| 郸城县| 阜新| 贵港市| 德钦县| 双鸭山市| 化州市| 环江| 班戈县| 于田县| 石楼县| 温泉县|