Subject: Newbie question
Posted By: savoym Post Date: 8/12/2006 3:33:40 PM
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:


<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.
Reply By: panacea Reply Date: 8/16/2006 3:15:50 AM
As long as it's working, I'd guess that it's a bug in Eclipse.  What version of Eclipse are you using?

Jon Emerson
http://www.jonemerson.net/

Go to topic 48386

Return to index page 203
Return to index page 202
Return to index page 201
Return to index page 200
Return to index page 199
Return to index page 198
Return to index page 197
Return to index page 196
Return to index page 195
Return to index page 194