肾穿刺要多少钱:return new ActionForward(mapping.findForward("success").getPath(),true); 空指针错误,为什么???

来源:百度文库 编辑:杭州交通信息网 时间:2024/05/06 09:03:21
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"