How to edit web.xml in Grails?

When you run grails create-app , it is not like web.xml generated anywhere. According to recent docs, it looks like running grails install-templates will put web.xml in your src/templates/war directory. A few questions about this:

  • We are currently on Grails 2.4.4: is this still a modern / recommended way to access and make changes to your web.xml ?
  • Can someone confirm that modifying this generated web.xml (e.g. adding a servlet filter) will really override and affect the execution of the application?
+7
grails
source share
1 answer

Yes, this is still an accepted method for changing web.xml in Grails 2.4.x and yes, your changes will be reflected in the deployed application.

+12
source share

All Articles