Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正进入(状态
javax.servlet.ServletException: java.lang.IllegalArgumentException: The path of an ForwardConfig cannot be null
在 struts 1.2 中,<hmtl :error>当我的表单 bean 类验证方法返回 ActionErrors 类的错误对象时。
<hmtl :error>
理想情况下,当您没有在struts-config.xml中指定路径、验证和输入时会遇到此异常。我们需要指定转发到哪里,以防发生故障。
<action path="/somePath" name="someForm" type="SomeActionClass" validate="true" input="/some.jsp"> <forward name="success" path="/some.jsp"></forward> </action>