沈阳招聘书店招聘兼职:return new ActionForward(mapping.findForward("success").getPath(),true); 空指针错误,为什么???

来源:百度文库 编辑:高校问答 时间:2024/04/29 14:30:47
return new ActionForward(mapping.findForward("success").getPath(),true); 空指针错误,为什么???
<action-mappings>
......
<forward name="success" path="/user/reg.jsp"></forward>
</action-mappings>
success 不为空的

找不到success的路径?
再看一下这句代码的上面和下面相连的语句。

“success”为null,查看一下你的"success"