Wrong!

What happens, is that UserData belongs to no package.
So the compiler tries to find it in the package for 
the generated servlet (which is org.apache.jsp for 
tomcat and may be any name with other jsp engines).

To use a bean that belongs to no package (not a good 
practice anyway) you have to import it like
<%@ page import="UserData" %>

(Not shure if that really works, because I never 
used a bean without a package.)

> -----Ursprüngliche Nachricht-----
> Von: dderry [mailto:[EMAIL PROTECTED]]
> Gesendet: Dienstag, 22. Januar 2002 12:56
> An: Tomcat Users List; [EMAIL PROTECTED]
> Betreff: Re: Jasper error
> 
> 
> Debby,
> 
> You need to import org.apache.jsp.UserData to use it in that 
> manner. (<%@
> page import="org.apache.jsp.UserData" %>).
> 
> the useBean declaration creates a scripting variable named 
> user, and does
> not require the import. But at line 3 (UserData user = null;) you are
> declaring a different variable (which will mask the variable 
> created by
> useBean). If you really intend to set the bean to null then just do an
> assignment rather than a declaration (user = null;).
> 
> Dave Derry

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to