Wrox Programmer Forums
JSP Basics Beginning-level questions on JSP. More advanced coders should post to Pro JSP.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the JSP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old August 12th, 2006, 03:33 PM
Friend of Wrox
Join Date: Jun 2003
Posts: 119
Thanks: 0
Thanked 1 Time in 1 Post
Default Newbie question

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:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Using a JavaBean</title>
    <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" />
I'd like to know why I am getting the error. Any insight or direction on how to correct it would be appreciated.

Old August 16th, 2006, 03:15 AM
Friend of Wrox
Join Date: Jan 2006
Posts: 198
Thanks: 0
Thanked 0 Times in 0 Posts

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
newbie question pbb Ajax 0 September 26th, 2006 05:47 AM
Newbie Question - Sorry! KP Crystal Reports 1 June 13th, 2006 02:45 AM
C# Newbie Question jazzcatone ASP.NET 2.0 Basics 1 May 25th, 2006 10:18 PM
newbie question Warbird XML 0 May 11th, 2005 08:41 AM
Newbie question maccer88 Access 1 October 18th, 2003 05:53 PM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.