tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Moore <tmo...@blackboard.com>
Subject RE: JSP exception question...help needed
Date Thu, 14 Sep 2000 21:24:07 GMT
Because the imports only apply to compile-time name resolution, but the
jsp:useBean tag loads the class at runtime using Class.forName or something
equivalent.

-- 
Tim Moore / Blackboard Inc. / Software Engineer
1899 L Street, NW/ 5th Floor / Washington, DC 20036
Phone 202-463-4860 ext. 258 / Fax 202-463-4863


> -----Original Message-----
> From: Rick Horowitz [mailto:rhorowitz@ni4u.com]
> Sent: Thursday, September 14, 2000 5:24 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Re: JSP exception question...help needed
> 
> 
> Bingo!! But why?? Doesn't make sense to me..
> 
> Thanks a million!!
> 
> Rick
> 
> William Brogden wrote:
> > 
> > Rick Horowitz wrote:
> > >
> > > Unfortunately, that did not help. I already have 
> java.util.* on the
> > > imports. Thanks anyway for trying :) Anybody else have 
> any idea why I'm
> > > seeing the problem outlined below?
> > >
> > > TIA...Rick Horowitz
> > 
> > In spite of the fact that you have included java.util.HashMap, you
> > still have to give the complete package in your JSP tag
> > 
> >  <jsp:useBean id="errorsMap" class="java.util.HashMap" 
> scope="request"
> > />
> > 
> > > > > javax.servlet.ServletException:  Cannot create bean 
> of class HashMap
> > > > >       at 
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:386)
> > > > >       at 
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> > > > >       at
> > 
> > --
> > WBB - wbrogden@bga.com  Chief Scientist, LANWrights, Inc.
> > Java Programmer Certification information and mock exam
> > at  http://www.lanw.com/java/javacert/
> 

Mime
View raw message