Why i coding

导航

Struts异常

java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null

该异常是struts加入验证时配置里面没有写上input属性,

因为验证出错的话会跳回input指向的页面

如下红色部分:

<action path="/regAction" name="RegActionForm"
    type="org.springframework.web.struts.DelegatingActionProxy"
    cancellable="true" validate="true" input="/customer/login.jsp">
    <forward name="loginCancle" path="/index.jsp"></forward>
    <forward name="sucess" path="/customer/index_login.jsp"></forward>
    <forward name="fail" path="/index.jsp"></forwards>
    <forward name="hadRegedit" path="/customer/customer_reg.jsp">

</forward>

就会报这个异常

posted on 2011-08-06 09:22  Milor  阅读(115)  评论(0)    收藏  举报