日期:2014-05-19 浏览次数:20906 次
<?xml version="1.0" encoding="GBK" ?>
<!DOCTYPE struts PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
"http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
<!-- 这一句配置,可以让action在spring中初始化 -->
<constant name="struts.objectFactory" value="spring"/>
<constant name="struts.devMode" value="true" />
<!-- 表示可以用动态方法调用,也就是可以调用userAction!delete.actin的形式 -->
<constant name = "struts.enable.DynamicMethodInvocation" value ="true"></constant>
<package name="default" namespace="/" extends="jfreechart-default">
<!--class里面的内容和spring配置文件中相应的bean的id号一样 -->
<action name ="goodAction" class = "goodAction">
<param name = "savePath">img</param>
<result name="success">/showGoods.jsp</result>
<result name="add">/addGood.jsp</result>
</action>
<!--class里面的内容和spring配置文件中相应的bean的id号一样 -->
<action name ="typeAction" class = "typeAction">
<result>/showType.jsp</result>
</action>
<!--class里面的内容和spring配置文件中相应的bean的id号一样 -->
<action name ="goodSaleRecordAction" class = "goodSaleRecordAction">
<result>/showSaleRecord.jsp</result>
<result name="add">/addSaleRecord.jsp</result>
</action>
<!--class里面的内容和spring配置文件中相应的bean的id号一样 -->
<action name ="goodInRecordAction" class = "goodInRecordAction">
<result>/showInRecord.jsp</result>
<result name="add">/addInRecord.jsp</result>
</action>
<!--class里面的内容和spring配置文件中相应的bean的id号一样 -->
<action name ="salePieJFreeChart" class = "salePieJFreeChart">
<result type = "chart">
<param name="width">950</param>
<param name="height">600</param>
</result> &nbs