Hello, all. I have a problem where the class "Fruit" isn't being seen. When I call the
JSP and it attempts to compile the page, it can't find the class file. I've even placed the class file in the root folder with the html and the jsp page and it still doesn't see it. I was wondering if someone could help me with this? The first line of the JSP page is what's causing the problem.
Thanks,
Donald
<jsp:useBean id="orderedFruit" class="Fruit" /> <------ Error
<jsp:setProperty name="orderedFruit" property="fruitName" value="Mango" />
<jsp:setProperty name="orderedFruit" property="color" value="Orange" />
<jsp:setProperty name="orderedFruit" property="price" value="5.95" />
<jsp:setProperty name="orderedFruit" property="quantityInPounds" param="quantity" />
<HTML>
<body>
<h1>Your
Fruit Order</h1>
<br><br>
Fruit: <jsp:getProperty name="orderedFruit" property="fruitName"/><br>
Color: <jsp:getProperty name="orderedFruit" property="color" /><br>
Price: $<jsp:getProperty name="orderedFruit" property="price" /><br>
Quantity: <jsp:getProperty name="orderedFruit" property="quantityInPounds" /><br>
Total:�$<%=orderedFruit.getPrice()*orderedFruit.getQuantityInPounds() %>
<p></p>
<a href="FruitOrder.html">Return to order form to adjust quantity</a>
</body>
</html>
[This message has been edited by Donald Nunn (edited November 27, 2001).]