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

Struts fails silently in too many places

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Reopened
    • Minor
    • Resolution: Unresolved
    • Nightly Build
    • 1.4.0
    • Core
    • None
    • Operating System: All
      Platform: All
    • 5739

    Description

      When something is specified incorrectly, usually in
      struts-config.xml or invocation of struts methods,
      the result is nothing! No exception, no log entry.

      Among the people I work with and from many forum posts
      it seems like this is a common source of frustration
      for struts developers. Some specific examples:

      • If the ActionForm name is not defined in struts-config, silence
      • If the ActionForward string is not found, silence
      • If no app.properties found, pretty close to silence
      • if you say html:text indexed="yes" (should be "true"), silence
        (note, the documentation implies it should be "yes")
        (many tag errors just result in silence)
      • If the ActionError type is not found, silence

      Most of these should cause exceptions and/or log entries.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--sources.zip
          13 kB
          I-Shen Leong
        2. ASF.LICENSE.NOT.GRANTED--struts-config_1_1.xsd
          36 kB
          nick.afshartous
        3. ASF.LICENSE.NOT.GRANTED--struts-config-schema.xsd
          11 kB
          I-Shen Leong
        4. ASF.LICENSE.NOT.GRANTED--TestableUberspect.java
          9 kB
          Llewellyn Falco

        Issue Links

          Activity

            People

              Unassigned Unassigned
              flawlor@athensgroup.com Frank Lawlor
              Votes:
              1 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: