Keith Ealanta wrote:
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?
I'll add a note to the JkSetEnvVar docs, but you should raise a TC bug
in bugzilla, so we can discuss. At least for me it is violating the
spec. I assume there's no clever reason for it, but the handling of the
request attributes in the AJP case is somewhat delicate.
Regards (and further thanks)
Keith
Regards,
Rainer
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]