金蝶天燕 apuisic-web.xml 完整配置示例
时间: 2023-07-25 20:23:05 浏览: 163
以下是一个金蝶天燕apuisic-web.xml的完整配置示例,供参考:
```xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE apuisic-web PUBLIC "-//Kingdee//DTD apuisic-web 1.0//EN" "http://www.kingdee.com/dtd/apuisic-web_1_0.dtd">
<apuisic-web>
<!-- 配置应用程序参数 -->
<context-param>
<param-name>appName</param-name>
<param-value>MyApp</param-value>
</context-param>
<!-- 配置过滤器 -->
<filter>
<filter-name>MyFilter</filter-name>
<filter-class>com.example.MyFilter</filter-class>
</filter>
<filter-mapping>
<filter-name>MyFilter</filter-name>
<url-pattern>/my/*</url-pattern>
</filter-mapping>
<!-- 配置拦截器 -->
<interceptor-stack name="myStack">
<interceptor-ref name="defaultStack"/>
<interceptor-ref name="MyInterceptor"/>
</interceptor-stack>
<action name="myAction" class="com.example.MyAction">
<interceptor-ref name="myStack"/>
<result name="success">/success.jsp</result>
</action>
<!-- 配置监听器 -->
<listener>
<listener-class>com.example.MyListener</listener-class>
</listener>
<context-param>
<param-name>myParam</param-name>
<param-value>myValue</param-value>
</context-param>
<!-- 配置Servlet -->
<servlet>
<servlet-name>MyServlet</servlet-name>
<servlet-class>com.example.MyServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>MyServlet</servlet-name>
<url-pattern>/myServlet</url-pattern>
</servlet-mapping>
</apuisic-web>
```
需要根据实际情况进行调整,比如修改参数名、类名、URL等。
阅读全文