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=27056>. 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=27056 Jasper taglib <useBean> bug!! Summary: Jasper taglib <useBean> bug!! Product: Tomcat 5 Version: 5.0.15 Platform: All OS/Version: Windows NT/2K Status: NEW Severity: Blocker Priority: Other Component: Jasper AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] CC: [EMAIL PROTECTED] When I write the snippet code in jsp file like below, the compile error will be occured(TestClassName is Interface or abstract class): ------------------ ... <jsp:useBean id="beanId" scope="request" class="TestClassName"/> ... ------------------ So I view the java source code, and find the corresponding snippet code: ------------------ ... TestClassName beanId= null; synchronized (request) { id= (TestClassName) pageContext.getAttribute("beanId", PageContext.REQUEST_SCOPE); if (beanId== null){ beanId= new TestClassName(); pageContext.setAttribute("beanId", beanId, PageContext.REQUEST_SCOPE); } } ... ------------------ It is easy to know that the statement "beanId= new TestClassName();" is wrong when TestClassName is Interface or abstract class. Please fig it !! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]