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

Empty cache of messages not created by ActionContext

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 1.3.10
    • Future
    • Core
    • None

    Description

      The JavaDoc for ActionContext states:

      /**

      • <p> Retrieve messages from an internal cache, creating an empty cache
      • if one is not already present. </p>
        *
      • @return The ActionMessage cache for errors
        */
        ActionMessages getMessages();

      /**

      • <p> Retrieve error messages from an internal cache, creating an empty
      • cache if one is not already present. </p>
        *
      • @return The ActionMessage cache for errors
        */
        ActionMessages getErrors();

      Despite the clear contract stated, neither go to create the cache. They will return null if not present in the context.

      Attachments

        Activity

          People

            pbenedict Paul Benedict
            pbenedict Paul Benedict
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: