Welcome to the Java Programming Forums


The professional, friendly Java community. 21,500 members and growing!


The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.


>> REGISTER NOW TO START POSTING


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: multiple annottions found error in jsp page with eclipse

  1. #1
    Junior Member
    Join Date
    May 2012
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default 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
    Last edited by sfdcmallik; May 9th, 2012 at 01:39 AM. Reason: not get answer. Its urgent for me. plsssss


  2. #2
    Member
    Join Date
    Apr 2012
    Location
    Superior, CO, USA
    Posts
    80
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default Re: multiple annottions found error in jsp page with eclipse

    Quote Originally Posted by sfdcmallik View Post
    <%@ include file="/jsp/common/taglibs.jsp"%> // here am getting error
    I think Eclipse is wrong here but try XML syntax:

    <jsp:include file="/jsp/common/taglibs.jsp" />

    Quote Originally Posted by sfdcmallik View Post
    <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.
    Need Java help? Check out the HotJoe Java Help forums!

Similar Threads

  1. Error in Eclipse, Norm redirected me here.
    By SilentNite17 in forum Java IDEs
    Replies: 3
    Last Post: February 14th, 2012, 09:48 PM
  2. Error Running Java in Eclipse
    By steadyonabix in forum Java IDEs
    Replies: 1
    Last Post: September 3rd, 2011, 10:28 PM
  3. Error when opening eclipse
    By BlackJavaCoder in forum Java IDEs
    Replies: 4
    Last Post: September 3rd, 2011, 07:57 AM
  4. Login Page error
    By abhiM in forum What's Wrong With My Code?
    Replies: 7
    Last Post: August 23rd, 2011, 07:30 AM
  5. Error Page in JSP Having Problems.
    By goldest in forum JavaServer Pages: JSP & JSTL
    Replies: 1
    Last Post: July 15th, 2010, 09:03 AM