[ http://issues.apache.org/struts/browse/STR-2894?page=all ]
Wendy Smoak updated STR-2894:
-----------------------------
Attachment: my-webapp.zip
Attached a sample Maven 2 project based on the struts-blank archetype which
demonstrates the problem.
To reproduce:
1. extract the zip file to a temporary location,
2. modify pom.xml <container>/<home> with the path to a local install of
Tomcat 5x
3. mvn package cargo:start
4. CTRL-C to stop the container
5. look at target/tomcat5x.out for the stack trace
> The <form-bean> type attribute should be optional
> -------------------------------------------------
>
> Key: STR-2894
> URL: http://issues.apache.org/struts/browse/STR-2894
> Project: Struts Action 1
> Type: Bug
> Components: Core
> Versions: Nightly Build
> Reporter: Wendy Smoak
> Fix For: 1.3.5
> Attachments: my-webapp.zip
>
> According to the 1.3 DTD, the 'type' attribute of <form-bean> is optional.
> http://struts.apache.org/dtds/struts-config/1_3/
> However, omitting it from the form bean definition in struts-config.xml
> results in an error.
> <form-bean
> name="inputForm" />
> SEVERE: Servlet /my-webapp threw load() exception
> javax.servlet.UnavailableException: Missing type value for inputForm form bean
> at
> org.apache.struts.action.ActionServlet.handleValueRequiredException(ActionServlet.java:830)
> at
> org.apache.struts.action.ActionServlet.initModuleFormBeans(ActionServlet.java:926)
> at org.apache.struts.action.ActionServlet.init(ActionServlet.java:357)
> at javax.servlet.GenericServlet.init(GenericServlet.java:211)
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira