Julia,

I had the same problem with VAJ 3.5.3, but I presume this will work with 4.0.  You 
need to make sure you are changing the code in the correct place.   There are two 
FormTag classes - one in the base taglib package and one in the taglib.html package.  
In
order to get the application to work with VAJ, you need to change it in the html 
package.

Eric Stievater
Distributed Application Development
201.418.5663



                                                                                       
                                                
                    "Julia Yang"                                                       
                                                
                    <jyang@gravito       To:     <[EMAIL PROTECTED]>      
                                                
                    n.com>               cc:                                           
                                                
                                         Subject:     Help  Error run Struts in VAJ 4 
"cant remove Attributes from request scope"      
                    09/07/01 02:36        remain                                       
                                                
                    PM                                                                 
                                                
                    Please respond                                                     
                                                
                    to struts-user                                                     
                                                
                                                                                       
                                                
                                                                                       
                                                




Hi, Geoff and Mark and all

Thank you for answer my question on how to use struts in VAJ
I got it run but with a error
Server caught unhandled exception from servlet [jsp]: cant remove
Attributes from request scope
I followed the e-mail Geoff sent out on 8/21/2001 with

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);

The problem remains, is there anything else I need do ?

Julia







*************************** IMPORTANT NOTE *****************************
The opinions expressed in this message and/or any attachments are
those of the author and not necessarily those of Brown Brothers
Harriman & Co., its subsidiaries and affiliates ("BBH").  There is no
guarantee that this message is either private or confidential, and it
may have been altered by unauthorized sources without your or our
knowledge.  Nothing in the message is capable or intended to create
any legally binding obligations on either party and it is not intended
to provide legal advice.  BBH accepts no responsibility for loss or
damage from its use, including damage from virus.
************************************************************************

Reply via email to