user310291
user310291

Reputation: 38190

What would be the equivalent of Application_EndRequest (ASP.NET) in Java Tomcat?

I saw this code snippet about post logging: https://serverfault.com/questions/90943/iis-log-request-body-post-data

which uses Application_EndRequest. Need to do the same in Java /Tomcat. Still will it work ? Because in IIS7 the request is passed along to app request handlers but in Tomcat I fear that the request parameters disappears if it is already pre-processed.

Upvotes: 0

Views: 238

Answers (1)

Paul Wostenberg
Paul Wostenberg

Reputation: 449

You could probably use a Filter to do the logging you're looking for; it also looks like Tomcat has a configuration option to log requests, although I don't know if it goes into details such as post parameters.

Upvotes: 2

Related Questions