You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by William Brogden <wb...@bga.com> on 2000/12/04 05:39:26 UTC

Re: Cannot create bean of class


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