tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Brogden <wbrog...@bga.com>
Subject Re: JSP exception question...help needed
Date Thu, 14 Sep 2000 21:56:43 GMT
I think it because the reflection mechanism that creates the 
Bean needs the full package qualified name. Import statements
only affect in-line code. Thats my theory anyway.....

Rick Horowitz wrote:
> 
> 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