tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Kirk <christopher.k...@convergys.com>
Subject RE: Logging
Date Mon, 18 Jun 2001 09:22:39 GMT

Two options come to mind,

1) Servlets 2.2 support Servlet chaining/forwarding.. so you have a single
entry Servet which passes control on to other Servlets.
2) If you are using JSP pages, then you could write a custom JSP tag and
place that at the top of every page that you want logged.


- Chris.

> -----Original Message-----
> From: Roland Carlsson [mailto:roland.c@swetravel.se]
> Sent: 18 June 2001 10:18
> To: tomcat-user@jakarta.apache.org
> Subject: Re: Logging
> 
> 
> Well, tomcat are only in 3.2.2 and I'm looking at what I can 
> do today. Do I have any options to to loggningcode into every page??
> 
> Thanks in advance
> Roland Carlsson
> 
> 
> ----- Original Message ----- 
> From: "Christopher Kirk" <christopher.kirk@convergys.com>
> To: <tomcat-user@jakarta.apache.org>
> Sent: Monday, June 18, 2001 11:04 AM
> Subject: RE: Logging
> 
> 
> > 
> > Best Approach:
> > In the Servlet 2.3 spec (So Tomcat 4.0) you could use 
> Filters.. a Filter may
> > be run before or after a Servlet.. modifying what it sees, 
> or what it
> > returns. 
> > 
> > 
> > - Chris.
> > 
> > > -----Original Message-----
> > > From: Roland Carlsson [mailto:roland.c@swetravel.se]
> > > Sent: 18 June 2001 9:45
> > > To: tomcat-user@jakarta.apache.org
> > > Subject: Logging
> > > 
> > > 
> > > Hi!
> > > I wonder if it's possible to put a servlet or bean to 
> > > pre-process all or some of the requests that a tomcat-server 
> > > will serv? The use I'm thinking of is customized logging to 
> > > be able to track sessions much closer than the apache common 
> > > log does without have put logging-code on every page that is 
> > > requested.
> > > 
> > > Regards
> > > Roland Carlsson
> > > 
> > > 
> > 
> > 
> > --
> > 
> > NOTICE:  The information contained in this electronic mail 
> transmission is
> > intended by Convergys Corporation for the use of the named 
> individual or
> > entity to which it is directed and may contain information that is
> > privileged or otherwise confidential.  If you have received 
> this electronic
> > mail transmission in error, please delete it from your 
> system without
> > copying or forwarding it, and notify the sender of the 
> error by reply email
> > or by telephone (collect), so that the sender's address 
> records can be
> > corrected.
> > 
> 

Mime
View raw message