在jsp中useBean动作的问题。
我在jsp中运用javabean:
<jsp:useBean id="aaa" class="package.Myjavabean" scope="session"/>
同时把Myjavabean.java放在\jsp\beans\package路径下
运行我的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 compile class for JSPNote: sun.tools.javac.Main has been deprecated.
An error occurred at line: 80 in the jsp file: /index.jsp
Generated servlet error:
D:\jwsdp-1_0_01\work\Standard Engine\localhost\bookstore\index$jsp.java:65: Class package.Myjavabean not found.
dbms.Conn aaa = null;
^
An error occurred at line: 80 in the jsp file: /index.jsp
Generated servlet error:
D:\jwsdp-1_0_01\work\Standard Engine\localhost\bookstore\index$jsp.java:68: Class package.Myjavabean not found.
aaa= (dbms.Conn)
^
An error occurred at line: 80 in the jsp file: /index.jsp
Generated servlet error:
D:\jwsdp-1_0_01\work\Standard Engine\localhost\bookstore\index$jsp.java:73: Class package.Myjavabean not found.
aaa = (package.Myjavabean) java.beans.Beans.instantiate(this.getClass().getClassLoader(), "package.Myjavabean");
^
3 errors, 1 warning
请问我哪里错了?