https://issues.apache.org/bugzilla/show_bug.cgi?id=46126
Summary: Unable to compile class for JSP
Product: Tomcat 5
Version: 5.5.20
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Jasper
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Hi
I am getting the following error while compile the jsp on Jboss 4.0.5
integrating with tomcat 5.5.20 .
exception
org.apache.jasper.JasperException: Unable to compile class for JSP
An error occurred at line: 11 in the jsp file: /test.jsp
Generated servlet error:
org.apache cannot be resolved or is not a field
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:512)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:377)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
the source code of test.jsp:
<%@ page contentType="text/html;charset=UTF-8"%>
<%
String org="";
%>
<html>
<head>
<title>edit</title>
<jsp:include page="/commonheader.jsp" />
</html>
the source code of commonheader.jsp:
<%@ page contentType="text/html;charset=UTF-8"%>
<%
String tempstr="jsp:include";
%>
<%=tempstr%>
If i change the name of variable "org" with "org1" or
change the code of "test.jsp"
<%@ page contentType="text/html;charset=UTF-8"%>
<html>
<head>
<title>edit</title>
<jsp:include page="/commonheader.jsp" />
<% String org=""; %>
</html>
It' ok, no exception.
I think maybe the "org" is the keyword of tomcat.
i want to know the reason of this problem.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]