DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13267>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

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

java.lang.IllegalArgumentException: cant remove Attributes from request scope

           Summary: java.lang.IllegalArgumentException: cant remove
                    Attributes from request scope
           Product: Struts
           Version: 1.1 Beta 1
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Critical
          Priority: Other
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


I'm getting the following error when using the html:form close tag. But could 
over come this problem when i went i changed the code in FormTag.class in 
struts.jar. But can't use the updated one to go into production. Your help 
would be really appreciated if u could help to over come this issue.

the change made is

ORIGINAL CODE
        super.pageContext.removeAttribute("org.apache.struts.taglib.html.BEAN", 
2);
        super.pageContext.removeAttribute("org.apache.struts.taglib.html.FORM", 
2);

CHANGED TO
        super.pageContext.getRequest().removeAttribute
("org.apache.struts.taglib.html.BEAN");
        super.pageContext.getRequest().removeAttribute
("org.apache.struts.taglib.html.FORM");


ERROR with original code:

java.lang.IllegalArgumentException: cant remove Attributes from request scope
at org.apache.jasper.runtime.PageContextImpl.removeAttribute
(PageContextImpl.java:236)
at org.apache.struts.taglib.html.FormTag.doEndTag(FormTag.java:632)
at myamana._0002fmyamana_0002fMyProfile_0002ejspMyProfile_jsp_3._jspService
(_0002fmyamana_0002fMyProfile_0002ejspMyProfile_jsp_3.java:1979)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.jasper.runtime.JspServlet$JspServletWrapper.service
(JspServlet.java:174)
at org.apache.jasper.runtime.JspServlet.serviceJspFile(JspServlet.java:268)
at org.apache.jasper.runtime.JspServlet.service(JspServlet.java:381)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.broadvision.servlet.ServletContainer.service(ServletContainer.java:404)
at com.broadvision.servlet.BVRequestDispatcher.forward
(BVRequestDispatcher.java:130)
at org.apache.struts.action.RequestProcessor.doForward
(RequestProcessor.java:972)
at org.apache.struts.action.RequestProcessor.processActionForward
(RequestProcessor.java:408)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:269)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1109)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:452)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at com.broadvision.servlet.ServletContainer.service(ServletContainer.java:404)
at com.broadvision.servlet.ServletContainer.processRequest
(ServletContainer.java:348)
at com.broadvision.servlet.ServletContextContainer.processRequest
(ServletContextContainer.java:660)
at com.broadvision.servlet.BVServletEngine.service(BVServletEngine.java:201)
at com.broadvision.servlet.BVServletConnector.service
(BVServletConnector.java:137)

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to