Running Struts from
5/1/01 cvs I get the following error from the form tag.
I am using IBM VAJ
3.5.3 with the Web Sphere Test environment set to JSP level
1.1
<!--StartFragment-->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()
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()
The following patch
fixes the problem.
Index:
src/share/org/apache/struts/taglib/html/FormTag.java
===================================================================
RCS file: /home/cvspublic/jakarta-struts/src/share/org/apache/struts/taglib/html/FormTag.java,v
retrieving revision 1.11
diff -r1.11 FormTag.java
516c516
< PageContext.REQUEST_SCOPE);
---
> PageContext.PAGE_SCOPE);
540c540
< PageContext.REQUEST_SCOPE);
---
> PageContext.PAGE_SCOPE);
557c557
< PageContext.REQUEST_SCOPE);
---
> PageContext.PAGE_SCOPE);
559c559
< PageContext.REQUEST_SCOPE);
---
> PageContext.PAGE_SCOPE);
===================================================================
RCS file: /home/cvspublic/jakarta-struts/src/share/org/apache/struts/taglib/html/FormTag.java,v
retrieving revision 1.11
diff -r1.11 FormTag.java
516c516
< PageContext.REQUEST_SCOPE);
---
> PageContext.PAGE_SCOPE);
540c540
< PageContext.REQUEST_SCOPE);
---
> PageContext.PAGE_SCOPE);
557c557
< PageContext.REQUEST_SCOPE);
---
> PageContext.PAGE_SCOPE);
559c559
< PageContext.REQUEST_SCOPE);
---
> PageContext.PAGE_SCOPE);