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

html-el taglib causes NPE with html:error tag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.1 RC1
    • 1.1 Family
    • Tag Libraries
    • None
    • Operating System: All
      Platform: All
    • 19326

    Description

      Normally, using <html:error /> will work properly. But when using the html-el
      taglib (with JSTL expression language), a NullPointerException is generated.

      Normally, the name property defaults to Globals.ERROR_KEY, but when processing
      the evaluateExpressions() method in ELErrorsTag.java, the value seems to be
      getting set to null. Putting a null check for setName() in ErrorsTag.java
      seems to make the problem go away.

      Attachments

        Activity

          People

            Unassigned Unassigned
            klee_88@yahoo.com Kenneth Lee
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: