Search code examples
grailsweb.xmlgrails-plugingrails-2.1

Add a <servlet> into web.xml in Grails 2.1


I want to add a node into web.xml.
I tried to use a webxml grails plugin, but look like it can't manage nodes. Any help or example will be apreciated...


Solution

  • You can use your own web.xml, with any content you want. Run

    > grails install-templates
    

    and edit /src/templates/war/web.xml file (it's a template, so don't remove existing Grails code)

    See http://grails.org/doc/latest/ref/Command%20Line/install-templates.html