java.net.MalformedURLException: Cannot retrieve ActionForward
800466Nov 17 2008 — edited Nov 19 2008Hope this is the right forum. I'm not sure where I went wrong here but maybe someone could help? Here is my Struts-web.xml file:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts-config PUBLIC
"-//Apache Software Foundation//DTD Struts Configuration 1.2//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_2.dtd">
<struts-config>
<form-beans>
<form-bean name="CreateLoginActionForm" type="jav110.CreateLoginActionForm"/>
<form-bean name="LoginActionForm" type="jav110.LoginActionForm"/>
<form-bean name="ModifyLoginActionForm" type="jav110.ModifyLoginActionForm"/>
</form-beans>
<global-exceptions>
</global-exceptions>
<global-forwards>
<forward name="welcome" path="/Welcome.do"/>
<forward name="create" path="/CreateLogin.jsp"/>
<forward name="login" path="/LoginForm.jsp"/>
</global-forwards>
<message-resources parameter="com/myapp/struts/ApplicationResource"/>
<action-mappings>
<action input="/CreateLogin.jsp" name="CreateLoginActionForm" path="/CreateLogin" scope="session" type="jav110.CreateLoginAction">
<forward name="failure" path="/CreateLogin.jsp"/>
<forward name="success" path="/Success.jsp"/>
</action>
<action input="/LoginForm.jsp" name="LoginActionForm" path="/LoginForm" scope="session" type="jav110.LoginAction">
<forward name="failure" path="/LoginForm.jsp"/>
<forward name="success" path="/ModifyLogin.jsp"/>
</action>
<action input="/ModifyLogin.jsp" name="ModifyLoginActionForm" path="/ModifyLogin" scope="session" type="jav110.ModifyLoginAction">
<forward name="failure" path="/ModifyLogin.jsp"/>
<forward name="success" path="/Success.jsp"/>
</action>
</action-mappings>
</struts-config>
In my CreateLogin.jsp file, I have this:
<html:errors property="CreateLogin"/>
<html:form action="CreateLogin.do">
......
</html:form>
I get the Malformed URL exception when I click the button that is supposed to invoke the form action.
Where did I go wrong?