急!!!今晚就要!!!

zhaoliao 2004-01-14 11:32:26
<action
path="/SalaryShow"
type="com.soliton.app.web.SalaryShowAction"
scope="request"
parameter="method"
input="/pages/logon.jsp">
<forward name="success" path="/pages/salarylist.jsp"/>
<forward name="salaryShow" path="/pages/salarylist.jsp"/>
<forward name="salaryPieceShow" path="/pages/salaryPiecelist.jsp"/>
<forward name="failure" path="/pages/logon.jsp"/>
</action>


<action
path="/SalaryEditSubmit"
type="com.soliton.app.web.SalaryEditAction"
scope="request"
name="salaryEditForm"
validate="false"
input="/pages/salaryview.jsp">
<forward name="success" path="/SalaryShow.do"/>
<forward name="failure" path="/pages/logon.jsp"/>
</action>


出错提示:
type Status report

message DispatchMapping[/SalaryList] does not define a handler property

description The server encountered an internal error (DispatchMapping[/SalaryList] does not define a handler property) that prevented it from fulfilling this request.


我的意思是我在struts-config.xml中定义了/SalaryShow 其中parameter="method" ,然后在public class SalaryShowAction extends DispatchAction {...},我又定义了/SalaryEditSubmit, 我希望Edit成功以后能转到SalaryShow.do?method=salaryShow,我该如何做呀
...全文
18 7 打赏 收藏 转发到动态 举报
写回复
用AI写文章
7 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhaoliao 2004-01-29
  • 打赏
  • 举报
回复
不好意思,回家过年了,忘结了,谢谢Leemaasn(我给大家拜早年啦!新春快乐!!!) ,问题解决啦,现在给分啦
netcobol 2004-01-15
  • 打赏
  • 举报
回复
message DispatchMapping[/SalaryList] does not define a handler property
应该
DispatchMapping ---〉forward("salaryShow");
Leemaasn 2004-01-15
  • 打赏
  • 举报
回复
楼主,既然你用的Action是继承于DispatchAction,
那么你每个Action里都会包含多个method吧。
所以
当你转入
<action
path="/SalaryEditSubmit"
进行处理后。如果处理成功,想返回
<action
path="/SalaryShow"
你必须这样定义:
<forward name="success" path="/SalaryShow.do?method=salaryShow"/>


并且你的
com.soliton.app.web.SalaryShowAction
里应该包含这个方法:salaryShow

楼主用的是Struts1.1的DispatchAction吧?
tiger_wkh52741 2004-01-15
  • 打赏
  • 举报
回复
顶一下.让高手看看!!!!UPUP
mymoto 2004-01-15
  • 打赏
  • 举报
回复
你的ActionForm定义了吗?或者是你用的dynctiveAction(晕,可能打错了,不记得如何打了)
zhaoliao 2004-01-14
  • 打赏
  • 举报
回复
大侠们,帮帮我吧,
hfayga 2004-01-14
  • 打赏
  • 举报
回复
关注

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧