DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=38374>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=38374





------- Additional Comments From [EMAIL PROTECTED]  2006-04-06 07:39 -------
(In reply to comment #40)
> I started working on an adapter/Wrapper, since just removing the attribute
> doesn't work in Resin . I need to read up on the Servlet Spec concerning this.

I don't know why it would not work. Have you tried other containers? One thing:
if you have includes (e.g. Tiles), then every included fragment has its own
"local" request values. This, for example, allows to send parameters in
<jsp:param> to a block included with <jsp:include>. So, maybe you are removing
attribute in a request for included fragment. Try this (this particular piece of
code was sent as a patch for JSP Controls project by Danny Lee, but it might
work for you too):

HttpServletRequest tmpRequest = request;
if (request instanceof HttpServletRequestWrapper) {
  while (tmpRequest instanceof HttpServletRequestWrapper) {
    tmpRequest = (HttpServletRequest) ((HttpServletRequestWrapper)
tmpRequest).getRequest();
  }
}
tmpRequest.removeAttribute(Globals.CANCEL_KEY);

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to