•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 374,616 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,277 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JSP advertiser: Lunarpages JSP Web Hosting
Views: 944 | Replies: 2
![]() |
I m trying to use <jsp:include page> with apache tomcat 5.5.26 as follows
where policy.html is html file to display policy.
while trying to view jsp i m getting following error
can any one help me?
679:</table> 680: </td></tr> 681: <tr><td colspan=2 width="100%"> 682: <jsp:include page="html/policy.html" flush="true"/> 683: </td></tr> 684: <tr><td colspan = 2 align="center"> 685: <input type="hidden" name="hide" value="3">
where policy.html is html file to display policy.
while trying to view jsp i m getting following error
org.apache.jasper.JasperException: Unable to compile class for JSP: An error occurred at line: 682 in the jsp file: /PreReqMail.jsp org.apache cannot be resolved or is not a field 679:</table> 680: </td></tr> 681: <tr><td colspan=2 width="100%"> 682: <jsp:include page="html/policy.html" flush="true"/> 683: </td></tr> 684: <tr><td colspan = 2 align="center"> 685: <input type="hidden" name="hide" value="3"> Stacktrace: org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:93) org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330) org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435) org.apache.jasper.compiler.Compiler.compile(Compiler.java:298) org.apache.jasper.compiler.Compiler.compile(Compiler.java:277) org.apache.jasper.compiler.Compiler.compile(Compiler.java:265) org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:302) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:329) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265) javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
can any one help me?
Last edited by peter_budo : May 10th, 2008 at 5:18 am. Reason: Managing code, making it more readable
•
•
Join Date: Nov 2004
Location: Netherlands
Posts: 5,588
Reputation:
Rep Power: 18
Solved Threads: 187
The <jsp:include tag includes the runtime result of executing another JSP into the one it's contained in.
As your page is a static page, not a JSP, it won't compile to a Java servlet, which is what the error indicates.
Make it a JSP and try again.
As your page is a static page, not a JSP, it won't compile to a Java servlet, which is what the error indicates.
Make it a JSP and try again.
42 Private messages asking for help will be ignored
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
In the frozen land of Nador they were forced to eat Steve's iMinstrels, and there was much rejoicing.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JSP Marketplace
Similar Threads
- <jsp:forward> problems (Java)
- JSP if statement (JSP)
- How to pass a server side value to an attribute of a custom jsp tag (JSP)
- how to call javabean from jsp (JSP)
- JSP, mysql, and character encoding (JSP)
- Problem with jsp include directive in iPlanet. Working in Tomcat. (JSP)
- Frame detection possible? (HTML and CSS)
- [urgent] JSP problem (JSP)
- hijacker.exe help, have no clue what's causing problem and don't want to delete good (Viruses, Spyware and other Nasties)
Other Threads in the JSP Forum
- Previous Thread: input type only text in jsp
- Next Thread: JSP-SQL Query to Access DB with Parameterized Query



just start a new web project...
Linear Mode