当前位置: 代码迷 >> Web前端 >> Ext3.2 direct与Java配备
  详细解决方案

Ext3.2 direct与Java配备

热度:549   发布时间:2012-11-03 10:57:42.0
Ext3.2 direct与Java配置

首先下载directjngine.1.3.zip,解压,打开文件夹,把lib里所有的jar文件以及最关键的deliverables/directjngine.1.3.jar 放入工程WEB-INF/lib中;

下载地址:http://code.google.com/p/directjngine/downloads /list ;

?

配置web.xml

?

<web-app xmlns="http://java.sun.com/xml/ns/javaee"
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
   xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_3.xsd"
   version="2.3">

 <display-name>compare</display-name>
  <servlet>
    <servlet-name>DjnServlet</servlet-name>
    <servlet-class>com.softwarementors.extjs.djn.servlet.DirectJNgineServlet</servlet-class>
    <init-param>
      <param-name>debug</param-name>
      <param-value>true</param-value>
    </init-param>
    <init-param>
      <param-name>minify</param-name>
      <param-value>true</param-value>
    </init-param>
    <init-param>
      <param-name>providersUrl</param-name>
      <param-value>djn/directprovider</param-value>
    </init-param>
    <init-param>
      <param-name>batchRequestsMultithreadingEnabled</param-name>
      <param-value>true</param-value>
    </init-param>
 <!-- api域: 对应下面的各个param-name的前缀,可以设置多个不同的域-->? 

    <init-param>
      <param-name>apis</param-name>
      <param-value>
        test
      </param-value>
    </init-param>
?? <!-- test.对应上面的域 test/用来安放其自动生成的js文件 -->
    <init-param>
      <param-name>test.apiFile</param-name>
      <param-value>test/Api.js</param-value>
    </init-param>
<!-- test.对应上面的域 命名空间会在页面加载时候用上 -->?
    <init-param>
      <param-name>test.apiNamespace</param-name>
      <param-value>Ext.test</param-value>
    </init-param>
<!-- test.对应上面的域 类的具体包路径 -->? 
    <init-param>
      <param-name>test.classes</param-name>
      <param-value>
      com.ext.page.PgDirect
      </param-value>
    </init-param>
    <load-on-startup>1</load-on-startup>
  </servlet>
  <servlet-mapping>
    <servlet-name>DjnServlet</servlet-name>
    <url-pattern>/djn/directprovider/*</url-pattern>
  </servlet-mapping>
  
  <welcome-file-list>
    <welcome-file>
      index.jsp
    </welcome-file>
  </welcome-file-list>
</web-app> 

?

  相关解决方案