Subject: Re: strange jsp compile error in tomcat4.1.8 From: Torgeir Veimo <[EMAIL PROTECTED]> === Bump!
This is a real problem for me. Are there noone else who have seen this problem? Torgeir Veimo wrote: > I see this strange compilation error when using struts nested tag libs > and jsp:include on the latest tomcat test; > > org.apache.jasper.JasperException: Unable to compile class for JSP > > An error occurred at line: -1 in the jsp file: null > > Generated servlet error: > [javac] Compiling 1 source file > >/usr/local/jakarta-tomcat-4.1.8-LE-jdk14/work/Standalone/localhost/main/publishing/desk/sectiontree_jsp.java:179: > > >include(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse,java.lang.String,javax.servlet.jsp.JspWriter,boolean) > > in org.apache.jasper.runtime.JspRuntimeLibrary cannot be applied to > >(javax.servlet.http.HttpServletRequest,javax.servlet.ServletResponse,java.lang.String,javax.servlet.jsp.JspWriter,boolean) > > > JspRuntimeLibrary.include(request, response, "treenode.jsp", > out, false); > > The code that triggers this is this jsp page; > > <%@ page contentType="text/html;charset=utf-8" %> > <%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %> > <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %> > <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %> > <%@ taglib uri="/WEB-INF/tiles.tld" prefix="tiles" %> > <html> > <head> > <html:base /> > <link rel=stylesheet type="text/css" href="../../style/default.css"> > </head> > <body> > > <nested:form action="/sectiontree.do"> > <bean:message key="desk"/><br> > <table border="0" cellpadding="0" cellspacing="0"> > <nested:nest property="tree"> > <%--<tiles:insert page="treenode.jsp" flush="false"/>--%> > <jsp:include page="treenode.jsp" flush="false" /> > </nested:nest> > </table> > </nested:form> > > </body> > </html> > > For some reason, the compiler seems to get confused ServletResponse and > HttpServletResponse. Do anyone have any clue why this doesn't work on > 4.1.8 while it works on 4.0.2? Can the taglib be to blame? -- -Torgeir -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
