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=21390>. 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=21390 Incorrect code generated by the jsp compiler Summary: Incorrect code generated by the jsp compiler Product: Tomcat 5 Version: 5.0.3 Platform: All OS/Version: Windows XP Status: NEW Severity: Major Priority: Other Component: Jasper2 AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] Hi, This problem seems to have started with the 4.1 release of tomcat. It was working fine in 4.0. I have 2 tags on a jsp page. Both of them expose variables with the same name and this results in the jsp compiler from 4.1 and above giving the follwing compilation error. Generated servlet error: [javac] Compiling 1 source file C:\apps\jakarta-tomcat-5.0.3\work\Catalina\localhost\oracletest\org\apache\jsp\test_jsp.java:95: cannot resolve symbol symbol : variable Message location: class org.apache.jsp.test_jsp Message = (String) pageContext.findAttribute("Message"); ^ An error occurred at line: 17 in the jsp file: /test.jsp Generated servlet error: C:\apps\jakarta-tomcat-5.0.3\work\Catalina\localhost\oracletest\org\apache\jsp\test_jsp.java:96: cannot resolve symbol symbol : variable prop location: class org.apache.jsp.test_jsp prop = (test.TempProperties) pageContext.findAttribute("prop"); ^ An error occurred at line: 19 in the jsp f The following is the jsp page <%@ taglib uri="/test" prefix="test" %> <% int i = 0; { %> <test:test/> Message 1: <%= Message %><br> <%= prop.getProperty("one") %><br> <% } { %> <test:test1/> Message 2: <%= Message %><br> <%= prop.getProperty("two") %> <% } %> I can send you a zip file containing the entire web application so that you can check this out. Can you please let me know, since this is a serious regression according to me. Thanks, Roshan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]