Scott,
I am fairly new to the whole jsp thing, but I think you will need to compile
your bean and then reference it in JSP pages like so:
<jsp:useBean id="myCar" class="my.package.Car" scope="request"/>
...
<p>The registration is: <%=myCar.getRegistration()%> </p>
...
etc etc
I'm not sure that this will actually help you that much, but there is plenty
of documentation on how to use beans with JSP. Have you checked out the
FAQs listed at the bottom of this message?
Regards,
Chris
-----Original Message-----
From: Scott Fitzgerald [mailto:[EMAIL PROTECTED]]
Sent: 15 February 2001 13:52
To: [EMAIL PROTECTED]
Subject: Using objects in JSPs (newbie)
Hi,
How would I go about using an object called car, for example, in a
JSP. I have written the object and saved it in its own file called
car.java. How do I access this object and its methods from a jsp?
Thanks,
Scott
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff
JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST
DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets