当前位置: 技术问答>java相关
请问如何解决?
来源: 互联网 发布时间:2017-04-01
本文导语: jsp 错误提示: 500 Servlet Exception /test2/sqlbean.jsp:9: jsp:useBean can't find class `sqlbean.access_dbconnect' -------------------------------------------------------------------------------- Resin 2.1.4 (built Fri Aug 2 14:16:52 PDT 2002) | ...
jsp 错误提示:
500 Servlet Exception
/test2/sqlbean.jsp:9: jsp:useBean can't find class `sqlbean.access_dbconnect'
--------------------------------------------------------------------------------
Resin 2.1.4 (built Fri Aug 2 14:16:52 PDT 2002)
500 Servlet Exception
/test2/sqlbean.jsp:9: jsp:useBean can't find class `sqlbean.access_dbconnect'
--------------------------------------------------------------------------------
Resin 2.1.4 (built Fri Aug 2 14:16:52 PDT 2002)
|
注意,javabean是以类名做为文件名,以包名做为文件夹名,根据你的写法,应该是在站点目录下的WEB-INF/classes/下新建一个yuanbean文件夹,然后将access_dbconnect.java放入其中(实际是生成的access_dbconnect.class,运行jsp时会自动生成)
jsp中的引用为:
class=包名.类名
jsp中的引用为:
class=包名.类名
|
sql.jsp