struts.xml配置

来源:百度知道 编辑:UC知道 时间:2024/06/25 22:41:18
我想把自己写的struts_liu.xml文件加在struts.xml里 ,可是不行。
struts.xml文件 如下:<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
"http://struts.apache.org/dtds/struts-2.1.dtd">

<struts>
<include file="struts-default.xml"/>
<include file="struts_liu.xml"/>
</struts>
2个文件都是在WEB-INF下面的 。
求教高手具体什么写啊 ,谢谢了先
我说的是struts2

在web.xml文件中配置:
<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/struts-config.xml,struts-default.xml,/WEB-INF/struts_liu.xml</param-value>
</init-param>
多个文件间用逗号(,)隔开

1楼的搞错了吧.......

这是struts2的配置文件吧...

哦,如果写在web-inf下,那就应该是路径错误了,找不到这两个xml,应该都在src下就行了。

一楼的是STRUTS1.0德配置文件 不是Struts2的配置文件