标题:请问。在JSP中怎么使用?
只看楼主
jingwei21
Rank: 1
等 级:新手上路
帖 子:22
专家分:0
注 册:2006-3-14
 问题点数:0 回复次数:3 
请问。在JSP中怎么使用?
我的程序是:
<%@ include file="head.jsp"%>
<%@ include file="left.jsp"%>
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<table align="center">
<tr align="center"><td>zhuye</td></tr>
</table>
<%@ include file="tail.jsp"%>

出现的错误是:

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.apache.jasper.JasperException: Unable to load class for JSP
	org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:591)
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

root cause

java.lang.ClassNotFoundException: org.apache.jsp.index1_jsp
	java.net.URLClassLoader$1.run(URLClassLoader.java:200)
	java.security.AccessController.doPrivileged(Native Method)
	java.net.URLClassLoader.findClass(URLClassLoader.java:188)
	org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:156)
	org.apache.jasper.servlet.JasperLoader.loadClass(JasperLoader.java:69)
	org.apache.jasper.JspCompilationContext.load(JspCompilationContext.java:589)
	org.apache.jasper.servlet.JspServletWrapper.getServlet(JspServletWrapper.java:137)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:245)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

note The full stack trace of the root cause is available in the Apache Tomcat/5.5.4 logs.


搜索更多相关主题的帖子: JSP 
2006-03-31 22:15
啊单
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2006-3-15
得分:0 

同问
我的include 也不会用

2006-04-02 13:32
bigboy000
Rank: 2
等 级:新手上路
威 望:3
帖 子:45
专家分:0
注 册:2006-4-2
得分:0 

我用的include是这样的:
<%@ include file="XXXX.txt" %>
你看这样行不?

2006-04-04 07:33
dabizi1
Rank: 1
等 级:新手上路
帖 子:9
专家分:0
注 册:2006-4-2
得分:0 
是这样用<jsp:include page="">
</jsp:include>
2006-04-04 14:27



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-54254-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.253259 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved