Philip Puthenvila
Philip Puthenvila

Reputation: 512

What we have in Play2 to modify request and response like filter in Servlet?

With Servlet API we can write filters to modify the request and response.If I use Play2 how can I achieve this.

Upvotes: 1

Views: 494

Answers (1)

Nilanjan
Nilanjan

Reputation: 741

There are possible ways to do that:

This is very similar to Servlet filters. If you take a look at the examples provided in the docs you will get the idea.

This allows you to hook into application start/stop events, specify error page or handle missing actions

Upvotes: 3

Related Questions