You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Ritter, Steve" <St...@netapp.com> on 2001/06/05 21:02:56 UTC

Need help with "Can't remove attributes from request scope" probl em.

Hi everyone,

We ran into a problem running b2/b3 on Servletmill that others seem to have hit with WTE.  It occurs when trying to access the login page from struts-example, you get an IllegalArgumentException with message "Can't remove attributes from request scope".  It seems this thread discusses a potential HACK to "fix" the issue.

http://www.mail-archive.com/struts-user@jakarta.apache.org/msg08663.html

The top-most posting in this thread indicates bugzilla id 932 which I checked into:

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=932

So, according to Craig the bug is really in the servlet container and it would seem that my servlet container has the very same prolem.  What is suggested work around for this?  Can someone help me with some more details in the event that I need to speak with my container vendor?

--Steve

Re: Need help with "Can't remove attributes from request scope" probl em.

Posted by "Craig R. McClanahan" <cr...@apache.org>.

On Tue, 5 Jun 2001, Ritter, Steve wrote:

> Hi everyone,
> 
> We ran into a problem running b2/b3 on Servletmill that others seem to
> have hit with WTE.  It occurs when trying to access the login page
> from struts-example, you get an IllegalArgumentException with message
> "Can't remove attributes from request scope".  It seems this thread
> discusses a potential HACK to "fix" the issue.
> 
> http://www.mail-archive.com/struts-user@jakarta.apache.org/msg08663.html
> 
> The top-most posting in this thread indicates bugzilla id 932 which I
> checked into:
> 
> http://nagoya.apache.org/bugzilla/show_bug.cgi?id=932
> 
> So, according to Craig the bug is really in the servlet container and
> it would seem that my servlet container has the very same prolem.  
> What is suggested work around for this?  Can someone help me with some
> more details in the event that I need to speak with my container
> vendor?
> 

Struts is calling

	pageContext.removeAttribute("foo", PageContext.REQUEST_SCOPE);

which is perfectly legal according to the JSP specification.  Containers
that disallow this are broken and need to be fixed.

> --Steve
> 

Craig McClanahan