You have to put into your JSP:
<%@ page import = "mysubdir.MyClass" %>
before <jsp:useBean...>
assuming that MyClass is in newdir/WEB-INF/classes/mysubdir.


Ernst Bekker wrote:
> 
> >>Bean should have one constractor without papameters.
> It does have that.
> >>Besides if you setup new directory (the place where you made it is for
> >>new application)
> 
> The Context is set up.
> What am I still missing?
> 
> 
> Ernst Bekker wrote:
> >
> > Hi,
> > I am running TomCat 4, and am attempting to forward an object to a JSP
> from
> > a servlet.
> > I have set up a new directory under .../webapps and the class files for
> both
> > the servlet
> > and the class of which I am trying to send an instance of are in .../
> > webapps/newdir/WEB-INF/classes.
> > The JSP file is in .../webapps/newdir.
> >
> > It seems that the servlet forwards the request but the JSP coughs up the
> > following exception:
> > The Exception:
> > org.apache.jasper.JasperException: Unable to compile class for JSP
> > An error occurred between lines: 11 and 13 in the jsp file:
> > /SessionAtempt.jsp
> 
> --
> 
> Confidentiality Caution and Disclaimer
> 
> This message and/or any attachment thereto ("the message")
> contains privileged and confidential information intended
> only for the recipient named above.
> If you are not the intended recipient of this message,
> please erase it permanently once you have notified the
> sender, per return e-mail, that you have received the
> message in error.
> Unless the sender is duly authorised by either the Telesure
> Group, or any of its subsidiary companies or I.S Services
> ("the Group") to send this message and unless the content
> of this message is also duly authorised by the Group, any
> views expressed in this message are those of the individual
> sender and the Group will not accept liability therefore,
> nor for any consequential damage arising therefrom.
> Any recipient of an unacceptable communication, a chain
> letter or offensive material of any nature is requested
> to report it to [EMAIL PROTECTED]
> 
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>

-- 
Lev Assinovsky                Peterlink Web
Programmer                    St. Petersburg, Russia
Tel/Fax: +7 812 3275343       197022 ul.Chapigina 7Á
E-mail: [EMAIL PROTECTED]

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

Reply via email to