I managed to make the warning message clear by adding this line to my code,

<!-- <%= results %> -->

Just after the logic:iterate tag.

mark n.


>From: "DHS Struts" <[EMAIL PROTECTED]>
>Reply-To: "Struts Users Mailing List" <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: JSP Compile warning w/ logic:iterate id
>Date: Thu, 23 May 2002 09:35:14 -0500
>
>All -
>
>I am in the process of cleaning up my code to eliminate warning messages,
>and I am stuck on this one. I am using a logic:iterate to display a bean 
>and
>I get this message in conjunction with it:
>
>JavaCompile: The local variable 'results' is never used.
>
>Here is a snippet containing the code in question:
>
><logic:iterate id="results"
>               name="nameSearchResults"
>               scope="session"
>               type="dhs.vcm.vis.form.NameSearchResultsForm"
>               indexId="myIndex">
><pg:item>
><dhshtml:row oddColor="#ccccff" evenColor="#ffffff">
><td>&nbsp;</td>
><td>
><html:link page='<%="/do/NameSearch/Details?selectedClient="+myIndex %>' >
><bean:write name="results" property="clientName"/>
></html:link>
></td>
><td><bean:write name="results" property="address"/></td>
><td><bean:write name="results" property="city"/></td>
><td><bean:write name="results" property="state"/></td>
><td><bean:write name="results" property="clientBirthdate"/></td>
><td><bean:write name="results" property="ssn"/></td>
></dhshtml:row>
></pg:item>
></logic:iterate>
>
>If anyone knows why I am getting this message and can tell me how to get 
>rid
>of it, I would be most appreciative.
>
>I am using WebSphere Studio Application Developer 4.x with Struts 1.02.
>
>Thanks in advance,
>
>mark n.
>
>_________________________________________________________________
>Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp.
>
>
>--
>To unsubscribe, e-mail:   
><mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail: 
><mailto:[EMAIL PROTECTED]>
>


_________________________________________________________________
MSN Photos is the easiest way to share and print your photos: 
http://photos.msn.com/support/worldwide.aspx


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to