tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Danno Ferrin <>
Subject Re: finding bean when .jsp in subdir
Date Thu, 20 Jul 2000 19:56:44 GMT
Using the default package (I.E. when classes appear in WEB-INF/classes)
is greatly discouraged.  Try putting the beans in a separate package
such as "package foo" and then use the import page directive to get the
bean classes imported.  You can still leave them in the default package,
but you will need to import each bean by name.  (IE <%@ page

> James More wrote:
> Hey all,
> My problem is that I have beans in the WEB-INF/classes directory, and
> jsp's on the application root.  The beans work properly when the *.jsp
> file is in the application root directory.  However, when the *.jsp
> files are in a subdirectory(ie. jsp), then the beans are not being
> found.  It assumes the beans are in the package jsp or whatever the
> name of the subdirectory is.  How do I get around this?
> Thanks for any help,
> James

View raw message