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

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

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.6.1
    • 1.6.2, 1.7-beta-1
    • Groovlet / GSP
    • None
    • 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

        1. GroovyServlet.java
          9 kB
          Marcel Overdijk

        Activity

          People

            guillaume Guillaume Sauthier
            marceloverdijk Marcel Overdijk
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: