<jsp:useBean id="mybean" scope="page" class="namehandler" />
而在WEB-INF下有一个classes文件夹,文件夹中有一个namehandler.class文件,为什么JSP总是执行不成功?错误提示如下:
HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.
而在WEB-INF下有一个classes文件夹,文件夹中有一个namehandler.class文件,为什么JSP总是执行不成功?错误提示如下:
HTTP Status 500 - --------------------------------------------------------------------------------type Exception reportmessage description The server encountered an internal error () that prevented it from fulfilling this request.
必须放在一个包内,不能直接放在\classes根目录下。
比如:<jsp:useBean id="mybean" scope="page" class="com.namehandler" />