我用的是ssh框架,在web.xml中添加了
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
<init-param>
<param-name>config</param-name>
<param-value>struts-cn.xml</param-value>
</init-param>
</filter>
后,会出现Cannot locate the chosen ObjectFactory implementation: spring异常,请问怎么把多个struts.xml文件加进去,还有用includ是怎么加的
<filter>
<filter-name>struts2</filter-name>
<filter-class>
org.apache.struts2.dispatcher.FilterDispatcher
</filter-class>
<init-param>
<param-name>config</param-name>
<param-value>struts-cn.xml</param-value>
</init-param>
</filter>
后,会出现Cannot locate the chosen ObjectFactory implementation: spring异常,请问怎么把多个struts.xml文件加进去,还有用includ是怎么加的
解决方案 »
- 问问struts2类型转换问题
- JAVA文件上传下载问题????????
- 我做的一个文件上传,都实现了,但是在文件下却看不到上传的文件,是为什么
- 在使用myeclipse中出现的问题?
- 新手提问:如果某个字段为空,该怎么取它呢?
- 关于struts如何传送数据的问题
- 谁给我一个struts的下载地址?
- 数据写到客户端不能保存为txt或html?为什么?
- JAVA问题~~麻烦看看这个,请问是什么原因..
- jsp中get获得值的问题????(在线等待)
- 提问一个问题,(jsp)我把所有图片查询出来了,name id 日期,发在文本框里,点击修改,我调试了一下,form里面什么都没有。。谢谢各位大虾
- 征求大家的意见。
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts> <!-- ベース -->
<package name="base" extends="struts-default" abstract="true"> <!-- 黙認アクション -->
<default-action-ref name="DefaultAction"></default-action-ref> <action name="DefaultAction">
<result>/WEB-INF/jsp/comm/ER0001.jsp</result>
</action> </package> <!-- 導入 -->
<include file="config/struts/admin/admin.xml"></include>
<include file="config/struts/applic/applic.xml"></include></struts>