On Wed, 13 Jun 2001, David Janovy wrote:
> Craig:
>
> What's wrong with changing the offending lines to:
>
> pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
> pageContext.getRequest().removeAttribute(Constants.FORM_KEY);
>
> from:
>
> pageContext.removeAttribute(Constants.BEAN_KEY,
> PageContext.REQUEST_SCOPE);
> pageContext.removeAttribute(Constants.FORM_KEY,
> PageContext.REQUEST_SCOPE);
>
> Does this not remove the attributes correctly?
>
That would remove them from the request correctly, but the problem is that
the page context would now be out of synchronization with the request
(i.e. these attributes would still be visible via
pageContext.findAttribute()). Custom tags should do all of their changes
via the page context, because the generated code in the servlet will
synchronize after the tag completes as outlined in the JSP spec.
> Thanks for all you work.
> David Janovy
>
Craig