DUBOIS Fabrice
Wed, 27 Jun 2001 08:27:03 -0700
Hello all
I went to IBM Software site and found a FixPak 4 for WebSphere 3.5.3
(http://www-4.ibm.com/software/webservers/appserv/doc/v35/wasv35ptf4_defects.html).
But there isn't any mention on the PageContext.removeAttribute()'s bug.
Does anybody now if this bug is referenced at IBM ?
If so, will they fix it in a FixPak 5 for WebSphere AND VisualAge for Java ?
Thanks
Fabrice
-----Message d'origine-----
De: Tuscano, Stephen [mailto:[EMAIL PROTECTED]]
Date: lundi 25 juin 2001 10:23
À: '[EMAIL PROTECTED]'
Objet: RE: Struts Question
Charles,
This is a known problem. Websphere has a bug (inherited from the old
version of Tomcat they used) that does not remove attributes from request
scope, even though this is perfectly legal.
Until Websphere fixes this, the only solution is to remove two lines from
the doEndTag() method (the two "pageContext.removeAttribute()" calls) and
rebuild Struts.
Stephen.
> -----Original Message-----
> From: Rick Smith [SMTP:[EMAIL PROTECTED]]
> Sent: Friday, June 22, 2001 11:41 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Struts Question
>
> Charles,
>
> I ran into the same problem trying to run struts on Tomcat 3.1. Removing
> attributes isn't supported in the older jsp specification or something
> like that. Try running the test page using Tomcat 3.2 if you can.
>
> Rick
>
> Charles Baker wrote:
> >
> > Quick question,
> > I?m using VA ?s Web Test Env and I?m getting an error using a
> simple test
> > page from the IBM web site. I?m still new to Struts so can someone let
> me
> > know if this is a simple mistake that I?m making? The single page JSP
> and
> > full error message are following.
> > Message: Server caught unhandled exception from servlet [jsp]: cant
> remove
> > Attributes from request scope
> >
> > Thanks in advance for any help.
> > CEB
> >
> > JSP Page
> > %@taglib uri="/WEB-INF/struts-html.tld" prefix="html"%
> > <html:html locale="false">
> > <html:errors/>
> > <html:form action="processNewEmployee.do">
> > *First Name: <html:text property="firstName"/><BR>
> > *Last Name: <html:text property="lastName"/><BR>
> > *Phone Number: <html:text property="phoneNumber"/><BR>
> > Office Number: <html:text property="officeNumber"/><BR>
> > Backup: <html:text property="backup"/><BR>
> > Backup Phone Number: <html:text property="backupPhoneNumber"/><BR>
> > <html:submit />
> > </html:form>
> > </html:html>
> >
> > Error 500
> > An error has occured while processing
> > request:http://localhost:8080/employeelist/processNewEmployee.do
> > Message: Server caught unhandled exception from servlet [action]: Server
> > caught unhandled exception from servlet [jsp]: cant remove Attributes
> from
> > request scope
> >
> > Target Servlet: action
> > StackTrace:
> >
> > Root Error-1: cant remove Attributes from request scope
> > 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() void
> >
> jsp._employeeEdit_xjsp._jspService(javax.servlet.http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse) void
> >
> org.apache.jasper.runtime.HttpJspBase.service(javax.servlet.http.HttpServl
> etRequest,
> > javax.servlet.http.HttpServletResponse) void
> > javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
> > javax.servlet.ServletResponse) void
> >
> org.apache.jasper.runtime.JspServlet$JspServletWrapper.service(javax.servl
> et.http.HttpServletRequest,
> > javax.servlet.http.HttpServletResponse, boolean) void
> >
> org.apache.jasper.runtime.JspServlet.serviceJspFile(javax.servlet.http.Htt
> pServletRequest,
> > javax.servlet.http.HttpServletResponse, java.lang.String,
> > java.lang.Throwable, boolean) void
> >
> org.apache.jasper.runtime.JspServlet.service(javax.servlet.http.HttpServle
> tRequest,
> > javax.servlet.http.HttpServletResponse) void
> > javax.servlet.http.HttpServlet.service(javax.servlet.ServletRequest,
> > javax.servlet.ServletResponse) void
> >
> com.ibm.servlet.engine.webapp.StrictServletInstance.doService(javax.servle
> t.ServletRequest,
> > javax.servlet.ServletResponse) void
> >
> com.ibm.servlet.engine.webapp.StrictLifecycleServlet._service(javax.servle
> t.ServletRequest,
> > javax.servlet.ServletResponse) void
> >
> com.ibm.servlet.engine.webapp.ServicingServletState.service(com.ibm.servle
> t.engine.webapp.StrictLifecycleServlet,
> > javax.servlet.ServletRequest, javax.servlet.ServletResponse) void
> > com.ibm.servlet.engine.webapp.StrictLifecycleServlet.service
> >
> > _________________________________________________________________
> > Get your FREE download of MSN Explorer at http://explorer.msn.com