Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-38

Add a mechanism for testing whether a controller is executed within pre-execution

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Neutral Neutral
    • 2.0.7, 3.0.5
    • None
    • None
    • None

      In controllers its often necessary to find out if the controller is being pre-executed or not. In order to take different actions. This can be done by testing if the http method is POST, but that might not be specific enough since a POST can happen to the page for other reasons. It's also possible to test for it by looking at the state kept by the pre-execution mechanism. But there should be a recommended and documented way of finding out.

      Possibly also as an argument directly to controllers, for instance:

      @RequestMapping("/contactform")
      public String handleRequest(ExecutionStatus executionStatus)

      {...}

      or

      @RequestMapping("/contactform")
      public String handleRequest(@PreExecutionStatus boolean preexecuting) {...}

        Acceptance criteria

              tmattsson Tobias Mattsson
              tmattsson Tobias Mattsson
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Task DoD