User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JSP section within the Web Development category of DaniWeb, a massive community of 403,301 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 3,784 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

Problem with <%jsp:include page>

Join Date: May 2008
Posts: 11
Reputation: punitdam is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 0
punitdam's Avatar
punitdam punitdam is offline Offline
Newbie Poster

Problem with <%jsp:include page>

  #1  
May 10th, 2008
I m trying to use <jsp:include page> with apache tomcat 5.5.26 as follows
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
AddThis Social Bookmark Button
Reply With Quote  
All times are GMT -4. The time now is 7:09 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC