pakeage
struts2吧
全部回复
仅看楼主
level 1
cyh303952778 楼主
struts.xml
在 src 下 就可以mapping 到
在src/resource下 总是mapping 不到 action
请问pakeage该怎么 写
2011年05月16日 07点05分 1
level 1
cyh303952778 楼主
自己顶起来!
2011年05月16日 14点05分 2
level 1
cyh303952778 楼主
附上详细配置
2011年05月16日 14点05分 3
level 1
cyh303952778 楼主
下面是主次struts文件配置:
主:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
     "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
     "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>
     <constant name="struts.objectFactory" value="spring"/>
     <constant name="struts.devMode" value="false" />
    
     <include file="classpath:com/ccc/app/helloworld/struts.xml"/>
<!--     <package name="com.ccc.app.helloworld" namespace="/" extends="struts-default">-->
<!--       <action name="hello_show" method="add" class="helloAction">-->
<!--           <result >show.jsp</result>-->
<!--       </action>-->
<!--     </package>-->
     <!-- Add packages here -->
</struts>
次:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
     "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
     "http://struts.apache.org/dtds/struts-2.0.dtd">
<struts>    
     <package name="com.ccc.app.helloworld" namespace="/" extends="struts-default">
       <action name="hello_show" method="add" class="helloAction">
           <result >show.jsp</result>
       </action>
     </package>
     <!-- Add packages here -->
</struts>

2011年05月16日 14点05分 4
level 1
cyh303952778 楼主
错误页面!
2011年05月16日 16点05分 5
level 1
cyh303952778 楼主
在线等!
2011年05月16日 16点05分 6
1