dcsimg
Struts with WTE in VAJ 3.5.3
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Arnaud_Bunel
Posted On:   Tuesday, January 22, 2002 05:09 AM

I'm using WebShere Test Environment in VAJ 3.5.3 with Struts. While running a JSP with a tag, it stops at the closing of the form ( ) with the following Exception : 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() How can I solve that problem ? Thank you.    More>>

I'm using WebShere Test Environment in VAJ 3.5.3 with Struts.
While running a JSP with a tag, it stops at the closing of the form ( ) with the following Exception :

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



How can I solve that problem ? Thank you.    <<Less

Re: Struts with WTE in VAJ 3.5.3

Posted By:   Dennis_Ryan  
Posted On:   Tuesday, February 26, 2002 08:43 AM

Resolving the WebSphere bug.

Due to a "bug" in WebSphere (see:
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=932)
a small hack has to be made. In the method

org.apache.struts.taglib.html.FormTag.doEndTag()

change the lines:

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


to read:

pageContext.getRequest
().removeAttribute(Constants.BEAN_KEY);
pageContext.getRequest
().removeAttribute(Constants.FORM_KEY);
About | Sitemap | Contact