Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-3306

Null value accepted from action property, but not model property when throwExceptionOnFailure=true

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.1
    • Fix Version/s: 2.2.1
    • Component/s: Value Stack
    • Labels:
      None

      Description

      In this project, we experiment with setting struts.el.throwExceptionOnFailure=true to catch errors.

      We use <s:property value="myprop" /> in our JSP.

      Occasionally, the property thus referenced is null. We want struts to insert an empty string in that case.
      This it duely does, when either struts.el.throwExceptionOnFailure=false or when the property is from an action object.

      However, if the property is from a model object and struts.el.throwExceptionOnFailure=true, this bombs out.

        Attachments

        1. WW3306.zip
          2 kB
          Andreas Krüger

          Activity

            People

            • Assignee:
              musachy Musachy Barroso
              Reporter:
              andreas.krueger@dv-ratio.com Andreas Krüger
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: