tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Keith Ealanta <keith.eala...@editure.com>
Subject Re: JkSetEnv and Servlet Filters
Date Mon, 05 May 2008 01:05:22 GMT
Rainer Jung wrote:
> Keith Ealanta schrieb:
>> public void doFilter(ServletRequest servletRequest, ServletResponse 
>> servletResponse, FilterChain filterChain) throws IOException, 
>> ServletException {
>>        log.debug("\nAttributes ... begin.\n");
>>        Enumeration attributeNames = servletRequest.getAttributeNames();
>>        while(attributeNames.hasMoreElements()) {
>>          String attributeName = (String) attributeNames.nextElement();
>>          log.debug(attributeName + " " + 
>> servletRequest.getAttribute(attributeName));
>>        }
>>        log.debug("\nAttributes ... end.\n");
>> etc.
>> }
>
> Aha! This unfortunately doesn't work. The attributes coming in via the 
> AJP protocol can be retrieved via request.getAttribute(), but are not 
> (!) shown in getAttributeNames().
Bingo.
Thank-you.  That fixed it.
Do you know if this is for some good and clever reason?  If it is we 
should probably note this limitation in the doco.  If it's not, then 
should I raise it as a bug on tomcat?

Regards (and further thanks)

Keith



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message