tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From S.Z...@spmv.de
Subject AW: Unable to load classes in JSP
Date Tue, 15 Aug 2000 14:36:51 GMT
Hi,

> Hi All,
> 
> I am running Tomcat 3.1 with jdk1.2.2 under WinNt 4.0.
> 
> Inside of my JSP page I import class files (they are in the 
> class path)
> using page directive. useBean works only if I provide full path to my
> class. 
> 
> Profile.jsp 
> <%@ include file="Header.jsp" %> 
> <jsp:useBean scope="request" id="profileBean" class="ProfileBean" />
> // this doesn't work
> <jsp:useBean scope="request" id="profileBean"
> class="com.comp.app.trsite.bean.v1_0.ProfileBean" />	// this works.
>  ...

You have to specify the full path!

On page 64 of the jsp specs you can read:

parameter class:

The fully qualified name of the class that defines the implementation of
the object. The class name is case sensitive.

HTH,

Stephan

Mime
View raw message