You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@struts.apache.org by "David Evans (JIRA)" <ji...@apache.org> on 2006/04/27 19:50:19 UTC

[jira] Reopened: (STR-232) cant remove Attributes from request scope - ERROR when logon.jsp is web-running!

     [ http://issues.apache.org/struts/browse/STR-232?page=all ]
     
David Evans reopened STR-232:
-----------------------------


> cant remove Attributes from request scope - ERROR when logon.jsp is web-running!
> --------------------------------------------------------------------------------
>
>          Key: STR-232
>          URL: http://issues.apache.org/struts/browse/STR-232
>      Project: Struts Action 1
>         Type: Bug

>   Components: Taglibs
>     Versions: 1.0 Final
>  Environment: Operating System: All
> Platform: PC
>     Reporter: anazarov
>     Assignee: Craig McClanahan
>     Priority: Critical

>
> Hello dear Struts creators!
> I try to run main Struts example (Struts_Example) from a final release of 
> Struts framework.
> When I call the logon.jsp page I have next error message:
> 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:591)
>  at _0002flogon_0002ejsplogon_jsp_0._jspService
> (_0002flogon_0002ejsplogon_jsp_0.java:368)
>  at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:126)
> ....
> It's obviously that this mistake arise when the servlet container is rendering 
> custom tags. In the logon.jsp page there is the next form tags:
> ...
> <html:form action="/logon" focus="username">
> <table border="0" width="100%">
> ....
> .... fields for input
> ....
> </html:form>
> When the container receives a tag </html:form> it runs the doEndTag() method 
> from org.apache.struts.taglib.html.FormTag object.
> Error arise in the code:
> 	// Remove the page scope attributes we created
> 	pageContext.removeAttribute(Constants.BEAN_KEY,
>                                     PageContext.REQUEST_SCOPE);
> ...
> I've walked through the code in the JBuilder's debugger. There is object with 
> key "Constants.BEAN_KEY" in the request scope. But system can't remove a 
> corresponding attribute.
> Please, explore this Struts conduct. I try to run a STANDARD Struts example. I 
> doesn't change anything in there. It worked well in beta realeases of Struts 
> (I'm using Struts from beta 2).
> With best regards.
> Anton Nazarov 
> chief software engineer
> Delta Telecom company 
> RUSSIAN FEDERATION

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org