配置文件信息
<struts>
<include file="struts-user.xml"/>
<include file="struts-main.xml"/>
<include file="struts-order.xml"/>
<include file="struts-cart.xml"/>
<package name="dang-default"
extends="json-default"> //这一行信息在控制台提示错误.
<!-- 定义各个模块都使用的共同元素 -->
<global-results>
<result name="error">/error.jsp</result>
</global-results>
<global-exception-mappings>
<exception-mapping exception="java.lang.Exception"
result="error">
</exception-mapping>
</global-exception-mappings>
</package>
</struts>控制台报错信息
严重: Unable to find parent packages dang-default
2012-11-29 9:34:20 com.opensymphony.xwork2.util.logging.jdk.JdkLogger error
严重: Unable to find parent packages json-default
2012-11-29 9:34:20 org.apache.coyote.http11.Http11Protocol start我已经引入struts2-json-plugin-2.1.8.jar 这个json包了为什么还报错那 这是为什么那.求教啊.
<struts>
<include file="struts-user.xml"/>
<include file="struts-main.xml"/>
<include file="struts-order.xml"/>
<include file="struts-cart.xml"/>
<package name="dang-default"
extends="json-default"> //这一行信息在控制台提示错误.
<!-- 定义各个模块都使用的共同元素 -->
<global-results>
<result name="error">/error.jsp</result>
</global-results>
<global-exception-mappings>
<exception-mapping exception="java.lang.Exception"
result="error">
</exception-mapping>
</global-exception-mappings>
</package>
</struts>控制台报错信息
严重: Unable to find parent packages dang-default
2012-11-29 9:34:20 com.opensymphony.xwork2.util.logging.jdk.JdkLogger error
严重: Unable to find parent packages json-default
2012-11-29 9:34:20 org.apache.coyote.http11.Http11Protocol start我已经引入struts2-json-plugin-2.1.8.jar 这个json包了为什么还报错那 这是为什么那.求教啊.
解决方案 »
- extjs4 store数据加载listern事件
- linux下tomcat问题
- 一道面试题:各位大牛、小牛、小小牛 进来瞅瞅
- Transaction 事务问题
- JSP页面里 Vector排序的问题 在线等待
- 创建XmlBeanFactory报错!!!!!!!!!!!!
- 帮帮初学着!有关jdbc和mysql的连接问题
- 关于三大框架中,用struts里面的debug标签下,Value Stack Contents内容丢失的问题:
- Error creating bean with name 'sessionFactory'
- 这错,求大神解决java.lang.ClassFormatError: Invalid pc in LineNumberTable in class file
- hibernate返回Map的问题
- spring DATA JPA 带条件分页查询的问题
楼主是不是达内学习的?