First of all you would import it, as in any other class...

<%@page import="com.manufacture.car"%>

...and then you can use the car class! :)

<%=car.getName()%>

Best regards

Casper Madsen

Adcore
Digital Business Creators A/S
Rentemestervej 69A * 2400 Cph. NV
Phone: (+45) 38 19 26 30 * Direct: (+45) 38 32 26 42
Mobil: (+45) 22 68 58 06 * Fax: (+45) 38 19 26 31
E-mail: [EMAIL PROTECTED]
ICQ: 30099349
http://www.adcore.com



-----Original Message-----
From: Scott Fitzgerald [mailto:[EMAIL PROTECTED]]
Sent: 15. februar 2001 14: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

Reply via email to