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

10,141

Ideally this Exception is encountered when you don't specify a path,validate and input in struts-config.xml. We need to specify where to be forwarded, in case of a failure.

<action path="/somePath"
       name="someForm"
       type="SomeActionClass"
       validate="true"
       input="/some.jsp">
    <forward name="success" path="/some.jsp"></forward>
</action>
Share:
10,141
YuvRAJ
Author by

YuvRAJ

I am Bachelor in Computer Engineering from PVG COET Pune. like to read technical stuff surf on new trends and technologies. Love to read Tech magazines. i am a fan of java programming, and learning them to apply on my real life. Now days looking for job in java development.

Updated on June 04, 2022

Comments

  • YuvRAJ
    YuvRAJ almost 2 years

    I am getting

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

    In struts 1.2 for <hmtl :error> when my form bean class validate method returns error object of ActionErrors class.

  • YuvRAJ
    YuvRAJ almost 11 years
    but i check struts-config.xml file numbr of times i don't think the error is in config file