Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-3477

Add setVariables method to GroovyServlet for easy extending of binded vars in custom classes

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.6.1
    • Fix Version/s: 1.6.2, 1.7-beta-1
    • Component/s: Groovlet / GSP
    • Labels:
      None
    • Flags:
      Patch

      Description

      TemplateServlet already contains a setVariables method which can be used by custom classes extending TemplateServlet.
      Using this method the bindings can be extended very easily.

      To bad the GroovyServlet does not has this feature.

      The attached paths solves this.

      • method setVariables added
      • in service() after creating the binding, a call to setVariables is added

        Attachments

          Activity

            People

            • Assignee:
              Guillaume Guillaume Delcroix
              Reporter:
              marceloverdijk Marcel Overdijk
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: