Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Newcomers » Newcomers » Comment tag and jsp code tag issue
Comment tag and jsp code tag issue [message #186357] Tue, 02 January 2007 16:18
Eclipse UserFriend
Originally posted by: Kentzhou_ca.yahoo.com

I have a piece of code in jsp page as below in Eclipse. Becuase of jsp
scriplet code have been put inside a comment tag <!-- -->. So it should be
ignored by compilation.
But I got the error said:
Duplicate local variable permission

It seems look like that the comment tag not affect any code in <% ... %>.
I want to keep this commented codes inside the jsp page. How can I fixed
this issue?

<tr>
<j2ee:items numItems="5">
<td>
<!--
......
<%String permission = ((Product)
pageContext.getAttribute("myItem")).getPermission();
if (permission.equals("1")) {%>
......
<%}%>
-->
</td>
</j2ee:items>
</tr>

<tr>
<j2ee:items numItems="5">
<td>
<!--
......
<%String permission = ((Product)
pageContext.getAttribute("myItem")).getPermission();
if (permission.equals("1")) {%>
......
<%}%>
-->
</td>
</j2ee:items>
</tr>
Previous Topic:javaeditor - conversion of plugin.xml to MANIFEST.MF
Next Topic:Get jvm according to directory
Goto Forum:
  


Current Time: Thu Apr 25 02:09:20 GMT 2024

Powered by FUDForum. Page generated in 0.08154 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top