Ernst,

Is MyClass in a package?  I think it has to be to work in a JSP.  Obviously
you also have to import MyClass in the page directive too.

Andy

> -----Original Message-----
> From: Ernst Bekker [mailto:[EMAIL PROTECTED]]
> Sent: 20 March 2002 09:33
> To: 'Tomcat Users List'
> Subject: RE: NEWBIE: Passing object from Servlet to JSP with session?
>
>
>
> >>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]>
>
>



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

Reply via email to