日期:2014-05-18  浏览次数:20725 次

webwork初级问题,内容很少请高手进入
我写了一个xwork.xml,其中含有两句
<include   file= "xwork-public.xml "   />
<include   file= "xwork-secure.xml "   />

在这里三个文件xwork.xml、xwork-public.xml、xwork-secure.xml编译后都在
classes下,结果一运行,就报错,告诉我找不到xwork-public.xml和xwork-secure.xml无法加载,请问这是怎么回事?

------解决方案--------------------
不明白,我想你应该把文件内容粘贴出来才行~
------解决方案--------------------
我用的 xwork2.0 include 了十多个文件都没问题,哈哈,纯粹帮顶。
Ps:
把异常的前几个堆栈信息也写上来的话,可能对能够帮你的人有点帮助。
------解决方案--------------------
你用的是Webwork的那个版本,我用的是最新版的Webwork,xwork.xml放在classes下面,在classes下面又建了一个xworks的文件夹把要导入的其他的配置文件放在下面了,在xwork.xml文件里面写
<include file= "xworks/baixiaofeng-xwork.xml "/>
<include file= "xworks/chenwanchun-xwork.xml "/>
<include file= "xworks/yangjie-xwork.xml "/>
<include file= "xworks/malei-xwork.xml "/>
没有出现问题。
------解决方案--------------------
<include file= "xwork-public.xml " />
<include file= "xwork-secure.xml " />

改成
<include file= "/xwork-public.xml " />
<include file= "/xwork-secure.xml " />
试试
------解决方案--------------------
DEBUG 一下吧
很少碰到这样的 呵呵````
------解决方案--------------------
include应该放到上面才对吧.