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

User Guide ActionMapping example confuses Session/Request scope

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • Nightly Build
    • 1.1 Family
    • Core
    • None
    • Operating System: other
      Platform: Other
    • 19458

    Description

      The ActionMapping Example
      (http://jakarta.apache.org/struts/userGuide/building_controller.html#config) says,

      "When a request that matches this path is received, an instance of the
      LogonAction class will be created (the first time only) and used. The controller
      servlet will look for a session scoped bean under key logonForm, creating and
      saving a bean of the specified class if needed."

      But the form in the example has request scope, so this is not correct. A new
      form will be created for each request and added as a request attribute.

      Attachments

        Activity

          People

            Unassigned Unassigned
            phil@steitz.com Phil Steitz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: