Uploaded image for project: 'Struts 1'
  1. Struts 1
  2. STR-2894

The <form-bean> type attribute should be optional

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • Nightly Build
    • 1.3.6
    • Core
    • None

    Description

      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)

      Attachments

        1. my-webapp.zip
          6 kB
          Wendy Smoak

        Activity

          People

            Unassigned Unassigned
            wsmoak Wendy Smoak
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: