I am on the old Beginning JSP wrox book and have a quick question on a tutorial that I am working on. BTW, I am on Java 1.5.7
First of all let me say that the page works however in the problems tab in eclipse I get the following error:
The local variable myCar is never read BegJSPDev/WebContent carPage1.jsp line 11
My code is as follows:
Code:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Using a JavaBean</title>
</head>
<body>
<h2>Using a JavaBean</h2>
<jsp:useBean id="myCar" class="com.wrox.cars.CarBean" />
I have a <jsp:getProperty name="myCar" property="make" /><br />
<jsp:setProperty name="myCar" property="make" value="Ferrari" />
Now I have a <jsp:getProperty name="myCar" property="make" />
</body>
</html>
I'd like to know why I am getting the error. Any insight or direction on how to correct it would be appreciated.
Regards.