tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Brogden <wbrog...@bga.com>
Subject Re: Cannot create bean of class
Date Mon, 04 Dec 2000 04:39:26 GMT


tony wrote:
> 
> Hi, all. I created a bean class and put it at "test/WEB-INF/classes/", I call it at
> a jsp file, the following meg was returned to me.  can anybody tell me why?thanks in
> advance.
> 
> Error: 500
> 
> Location: /test/jsp/testBean.jsp
> 
> Internal Servlet Error:
> 
> javax.servlet.ServletException:  Cannot create bean of class TestBean
>         at ....

Your Bean should be in a package, and
your <jsp:useBean tag must give the 
complete package in the class= attribute. 


-- 
WBB - wbrogden@bga.com
Author of Java Developer's Guide to Servlets and JSP 
ISBN 0-7821-2809-2

Mime
View raw message