struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Chen" <mark.c...@dhltd.com>
Subject Re: VAJ 4.0 and WTE "cant remove Attributes from request scope"
Date Thu, 23 Aug 2001 22:59:37 GMT
Geoff,

Thank you very much!!!

Regards,

Mark Chen



>>> geoff@multitask.com.au 08/23/01 07:11PM >>>


Replace the following lines in the doEndTag() method in the FormTag class:

     pageContext.removeAttribute(Constants.BEAN_KEY,
PageContext.REQUEST_SCOPE);
     pageContext.removeAttribute(Constants.FORM_KEY,
PageContext.REQUEST_SCOPE);

with the following:

     pageContext.getRequest().removeAttribute(Constants.BEAN_KEY);
     pageContext.getRequest().removeAttribute(Constants.FORM_KEY);

and your problem will disappear : )


Regards,

Geoff Bennett,
Multitask Consulting,
geoff@multitask.com.au



                                                                                         
                                                    
                    "Mark Chen"                                                          
                                                    
                    <mark.chen@dh        To:     <struts-user@jakarta.apache.org>,
"Mike Pettersen" <mike.pettersen@dhltd.com>                
                    ltd.com>             cc:                                          
                                                       
                                         Subject:     VAJ 4.0 and WTE "cant remove Attributes
from request scope"                             
                    24/08/2001                                                           
                                                    
                    08:14 AM                                                             
                                                    
                    Please                                                               
                                                    
                    respond to                                                           
                                                    
                    struts-user                                                          
                                                    
                                                                                         
                                                    
                                                                                         
                                                    




Hi,

I found one suggestion from Johan about VAJ3.5.3 problem to cant remove
attributes from request scope. I had a same problem when
tried to setup VAJ 4.0 to run struts and I got the same problem as attached
below.

Anybody knows IBM has fixed this problem.

Thanks!

Mark

Message: Server caught unhandled exception from servlet [jsp]: cant remove
Attributes from request scope

Target Servlet: jsp
StackTrace: Root Error-1: cant remove Attributes from request scope
java.lang.IllegalArgumentException: cant remove Attributes from request
scope
           java.lang.Throwable(java.lang.String)
           java.lang.Exception(java.lang.String)
           java.lang.RuntimeException(java.lang.String)
           java.lang.IllegalArgumentException(java.lang.String)
           void
org.apache.jasper.runtime.PageContextImpl.removeAttribute(java.lang.String,
int)
           int org.apache.struts.taglib.html.FormTag.doEndTag()

Mime
View raw message