multiple annottions found error in jsp page with eclipse
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
Re: multiple annottions found error in jsp page with eclipse
Quote:
Originally Posted by
sfdcmallik
<%@ include file="/jsp/common/taglibs.jsp"%> // here am getting error
I think Eclipse is wrong here but try XML syntax:
Code :
<jsp:include file="/jsp/common/taglibs.jsp" />
Quote:
Originally Posted by
sfdcmallik
<table width="100%" height="100%" border="0" cellspacing="0" cellpadding="0"> // here another red mark
That's likely related to the antiquated syntax you're using, coupled with a lack of a DOCTYPE. Run the output of your page (after it has been interpreted by your servlet engine) through the validation at The W3C Markup Validation Service. XHTML 1.0 and 1.1 along with HTML5 have deprecated those parameters. If you really want to use prehistoric tags then you'll have to use a prehistory DOCTYPE. Always have a DOCTYPE in your HTML.