tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ke...@cysphere.com (Kedar Choudary)
Subject RE: How to intialize locals before... ?
Date Mon, 25 Sep 2000 10:13:20 GMT
Hi,

You can implement your own RequestInterceptor.
You can derive your RequestInterceptor from from
org.apache.tomcat.Request.SimpleMapper.
Override the method, beforeBody. Call super.beforeBody() and then do your
own custom initialization.
Modify server.xml, replace org.apache.tomcat.Request.SimpleMapper with name
of the RequestInterceptor you have written.

Kedar.


-----Original Message-----
From: Arthur Farmer [mailto:afarmer@hyperwave.com]
Sent: Friday, September 22, 2000 12:40 PM
To: Tomcat-User-Mailinglist
Subject: How to intialize locals before... ?


Hi

I got the following scenario:

A (our own intranet-) server internal request is sent to a User-Servlet on
the
built-in webserver (Tomcat). Before this request gets to the User-Servlet it
should be intercepted by another Servlet (or something alike), which
intializes
our Server Api (Java),does the Session Tracking and passes the request on to
the User-Servlet afterwards.
So the User and User-Servlet don't have to take into consideration all the
internal Server-Api crap, it should be already there, ready for usage.

How can I do this?
Can anybody help me?
Has anybody tried this already?

Many Thanx
Arthur


Mime
View raw message