cf在哪里领取戒指:return new ActionForward(mapping.findForward("success").getPath(),true); 空指针错误,为什么???

来源:百度文库 编辑:高考问答 时间:2024/05/21 22:26:32
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"