Hi Jon & All, Thanks for your information. It's very helpful. I've been looking at ValveContext but did not find anything useful.
Yes, I tried to pass the info object along as an attribute of ServletRequest. But problem occured with the retrieval of the object in the Filter, where ServletRequest.getAttribute() successfully located my attribute, but promtted a ClassCastException when the returned Object was casted back to the original info class. It seems Tomcat somehow lost the class structure of the original info class...? Anyone got a clue of this? Many thanks. Rui On Fri, 21 May 2004, Jon Wingfield wrote: > An invocation of a Tomcat Valve gives you a Request object. This is a > facade to a ServletRequest, which you can access via the getRequest() > method. You could set your info object as an attribute on the > ServletRequest. This should then be visible to your filter. > > http://jakarta.apache.org/tomcat/tomcat-4.1-doc/catalina/docs/api/index.html > > Just curious, why the custom Valve? > > Jon > > Rui Zhang wrote: > > > Hi all, > > > > I'm trying to pass some info (say, as an Object) between a valve and a > > filter. Is anyone aware of a effective way to do this within the context > > of Tomcat? > > > > Many thanks. > > > > Best, > > > > Rui > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
