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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to