Hi,
we've a struts application deployed in eclipse. and some of my jsp pages are showm red X mark.
and these are showing 'multiple annotations found' and 'index cannot be resolved to a variable' error.
can any one help me pls. its urgen.
my code is :
<%@ include file="/jsp/common/taglibs.jsp"%> // here am getting error
<%@ page import="com.bob.ldms.common.util.Constants" %>
<%
String contextPath=request.getContextPath();
%>
<script language="javascript" type="text/javascript" src="<%=contextPath%>/scripts/leftNav.js"></script>
<link href="<html:rewrite page='/css/global.css'/>" rel="stylesheet"></link>
<script type="text/javascript">
function goToFrame(path){
parent.homeBodyFrame.location.href = path;
}
</script>
<body>
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> // here another red mark
<tr>
<td valign="top" height="100%" class="leftnav">
<!-- Main Block Begins -->
<logic:present name="roleLinks">
<!-- Parent Links Iteration Begins -->
<logic:iterate name="roleLinks" id="roleLinksObj" indexId="index" >
<logic:equal value='<%=Constants.ROOT_LINK_ID %>' name="roleLinksObj" property="parentLinkId" >
<!-- IF Registration Iteration Check END -->
<logic:equal name="roleLinksObj" property="linkId" value="1" >
<logic:notEqual name="preferences" property="registration" value="0" >
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="leftlinks" id="ln<%=index%>a">
<tr>
<th><a onclick="leftnava('ln<%=index%>a','ln<%=index%>b') ;" target="homeBodyFrame" style="cursor:pointer;cursor:hand;">+ <bean:write name="roleLinksObj" property="linkName" /> </a></th>
</tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="leftlinks" id="ln<%=index%>b" style="display:none">
<tr>
<th><a onclick="leftnavb('ln<%=index%>b','ln<%=index%>a') ;" target="homeBodyFrame" style="cursor:pointer;cursor:hand;">- <bean:write name="roleLinksObj" property="linkName" /></a></th>
</tr>
<bean:define id="tempParentId" type="java.lang.String" name="roleLinksObj" property="linkId" />
<!-- Sub Links Iteration Begins -->
<logic:iterate name="roleLinks" id="roleSubLinksObj" indexId="subIndex">
like this my code is.
please help me. its urgent....
thanks in advance