国家大剧院戏剧场:请问如何部署javaBean?
来源:百度文库 编辑:中科新闻网 时间:2024/05/13 15:07:56
我是jsp初学者,我把e:\jsp目录做为学习用的测试jsp目录.此目录的域名路径为:http://localhost:8080/jsp/.
我在jsp目录下建立了WEB-INF\classes文件夹,把刚刚写好编辑后的Test.class文件拷贝到了该目录,结果测试却出现了错误.jsp代码为:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.Date"%>
<%@ page import="Test"%>
错误代码提示为(由于太长,只贴出一段):
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 compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
D:\Tomcat\work\Standalone\localhost\jsp\study_jsp.java:9: '.' expected
import Test;
请高手样帮我看一下这是什么意思!
我在jsp目录下建立了WEB-INF\classes文件夹,把刚刚写好编辑后的Test.class文件拷贝到了该目录,结果测试却出现了错误.jsp代码为:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<%@ page import="java.util.Date"%>
<%@ page import="Test"%>
错误代码提示为(由于太长,只贴出一段):
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 compile class for JSP
An error occurred at line: -1 in the jsp file: null
Generated servlet error:
[javac] Compiling 1 source file
D:\Tomcat\work\Standalone\localhost\jsp\study_jsp.java:9: '.' expected
import Test;
请高手样帮我看一下这是什么意思!