IAmYourFaja
IAmYourFaja

Reputation: 56944

How to add filters to a Grails app

I'm trying to add these single signout filters to my Grails 2.3.6 app. According to the Grails docs on Filters it seems like you can only add new (custom) filters to Grails apps, whereas these are existing filters imported from another project/JAR.

I scanned my project for the existence of a web.xml and didn't find anything.

How can I add the specific filters in the above link to my Grails app?

Upvotes: 0

Views: 1298

Answers (2)

dmahapatro
dmahapatro

Reputation: 50275

You can use WebXmlConfig plugin which provides a DSL approach to add/modify contents to web.xml.

Upvotes: 1

Joshua Moore
Joshua Moore

Reputation: 24776

The easiest way is to run "grails install-templates" and edit the resulting src/templates/war/web.xml file.

Upvotes: 1

Related Questions