facebook

anchor error

  1. MyEclipse Archived
  2.  > 
  3. Web Development (HTML, CSS, etc.)
Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #273276 Reply

    this example code give you “No start tag <a>” error

    <tr>
    <a name=”anchortest”>
    <td>1</td>
    <td>2</td>
    </a>
    </tr>

    I tried putting the anchor around the <tr> but got same results.

    #273287 Reply

    Loyal Water
    Member

    I was unable to reproduce this issue at my end. Can you paste the entire file here for me to test.

    Also, can you go thorugh the posting guidelines thread at the top of the forum and post your installation details here for me.

    #276472 Reply

    malashan
    Member

    I am also getting “No start tag(<p>)”.
    Have you fixed the problem? If you have, could you please let me know how to fix it?

    Thanks!
    Mala

    #276475 Reply

    Loyal Water
    Member

    Can you paste your entire file here for me.

    #276478 Reply

    malashan
    Member

    The following is from one of the jsp page and this one not recognize the start tag of <p>. Some other pages have error because of the start tag of <tr>.
    I tried to disable the html validator in the properties section of the project, but no luck.

    <%@ include file=”/includes/taglibs.jsp”%>
    <p>
    <div id=”print”>
    <a href=”#” onClick=”openWin(‘TaskGroup.do?ACTION=blank’)”><img src=”images/task.gif” border=”0″ alt=”Create New Task” /></a>
    <a href=”#” onClick=”openWin(‘CommunicationLog.do?ACTION=create’)”><img src=”images/communication.gif” border=”0″ alt=”Create New Communication Log” /></a>
    <a href=”#” onClick=”openWin(‘ShippingLog.do?ACTION=create’)”><img src=”images/shipping.gif” border=”0″ alt=”Create New Shipping Log” /></a>
    <a href=”#” onClick=”openWin(‘StorageLog.do?ACTION=create’)”><img src=”images/storage.gif” border=”0″ alt=”Create New Storage Log” /></a>
    <a href=”javascript:window.print();”><img src=”images/print.GIF” border=”0″ alt=”Print this page..” /></a>
    </div>
      <a class=”whitelink” href=”index.do”>Home</a>
      <a class=”whitelink” href=”#” onClick=”openWin(‘Sitemap.do?ACTION=view’)”>Sitemap</a>
      <a class=”whitelink” href=”#” onClick=”openWin(‘/SATDocs/SATTrainingGuide.pdf’)”>Help</a>
    <c:if test=”${employee.administrator == ‘Y’}”>
      <a class=”whitelink” href=”Admin.do”>Admin</a>
    </c:if>
    </p>

    #276481 Reply

    malashan
    Member

    Another page for your review

    <%– Load the taglibs file –%>
    <%@ include file=”/includes/taglibs.jsp”%>

    <%– Page title from messages.properties –%>
    <%– Ex: index.title=S/URS Activity Tracking System ~ Welcome –%>

    <head>
    <title><fmt:message key=”taskTemplateList.title” /></title>
    </head>
    <body>

    <%– Update messages.properties with your content header –%>
    <%– Ex: index.header=Welcome to the S/URS Activity Tracking System –%>
    <div id=”content_header”><fmt:message key=”taskTemplateList.header” /></div>
    <!– BEGIN CONTENT –>
    <p>
    <table>
    <tr valign=”top”>
    <td width=”750″>
    <form action=”TaskTemplate.do” method=”post”
    name=”taskTemplate”>
    <table class=”table”>
    <tr>
    <td class=”tableHeader” colspan=”9″>Task Template List</td>
    </tr>
    <c:if test=”${not empty errors}”>
    <tr>
    <td class=”warning”><img src=”images/warning.gif”
    border=”0″ /> <fmt:message
    key=”error.validation” /></td>
    <td></td>
    </tr>
    </c:if>
    <tr>
    <td class=”tableSubHeader”>Task Template</td>
    <td class=”tableSubHeader”>Status</td>
    </tr>
    <c:forEach var=”tL” items=”${requestScope.templateList}”
    varStatus=”templateCount”>
    <c:choose>
    <c:when test=”${templateCount.count mod 2 == 0 }”>
    <tr class=”tableRowEven”>
    </c:when>
    <c:otherwise>
    <tr class=”tableRowOdd”>
    </c:otherwise>
    </c:choose>
    <td class=”tableCell”><a
    href=”TaskTemplate.do?ACTION=viewTemplate&KEY=<c:out value=’${tL.key}’/>”><c:out
    value=”${tL.description}” /></a></td>
    <td class=”tableCell”><a
    href=”TaskTemplate.do?ACTION=edit&KEY=<c:out value=’${tL.key}’/>”>
    <c:if test=”${tL.activeIndicator == ‘A’}”> Active</c:if>
    <c:if test=”${tL.activeIndicator == ‘I’}”> Inactive</c:if>
    <c:if test=”${tL.activeIndicator == ‘U’}”> Unchangeable</c:if>
    </a></td>
    </tr>
    </c:forEach>
    <tr class=”tableRowOdd”>
    <td class=”warning”><c:out value=”${errors.FIELD_NAME}” /></td>
    <td align=”right”></td>
    </tr>
    <tr class=”tableRowOdd”>
    <td class=”warning”><c:out value=”${errors.DESCRIPTION}” /></td>
    <td align=”right”></td>
    </tr>
    <tr class=”tableRowOdd”>
    <td class=”warning”><c:out value=”${errors.ACTIVE_CODE}” /></td>
    <td align=”right”></td>
    </tr>
    <tr class=”tableRowOdd”>
    <td colspan=”3″><input type=”text” name=”DESCRIPTION”
    size=”30″
    value=”<c:out value=’${requestScope.selectedLookup.description}’/>” />
    <select name=”ACTIVE_CODE”>
    <c:if
    test=”${requestScope.selectedLookup.activeIndicator == null}”>
    <option value=”” selected><fmt:message
    key=”select.default” />
    </c:if>
    <option
    <c:if test=”${requestScope.selectedLookup.activeIndicator == ‘A’}”> selected</c:if>>Active

    <option
    <c:if test=”${requestScope.selectedLookup.activeIndicator == ‘I’}”> selected</c:if>>Inactive

    <option
    <c:if test=”${requestScope.selectedLookup.activeIndicator == ‘U’}”> selected</c:if>>Unchangeable

    </select> <input type=”submit” value=”Save Template”
    class=”btn”
    onmouseover=”this.className=’btn btnhov'”
    onmouseout=”this.className=’btn'” /></td>
    </tr>
    </table>
    <input type=”hidden” name=”ACTION” value=”save” /> <input
    type=”hidden” name=”KEY”
    value=”<c:out value=’${requestScope.selectedLookup.key}’/>” />
    </form>
    </td>
    </tr>
    </table>
    </p>
    <!– END CONTENT –>
    </body>

    #276495 Reply

    Loyal Water
    Member

    Div tag cannot be inside the p tag. You can refer to this thread for an explanation on this:-
    http://www.webmasterworld.com/html/3089962.htm

    #276531 Reply

    malashan
    Member

    The code was from an existing working project. I haven’t done any changes to the project. So I don’t want to change any code, but I could change the settings if I have to. Help me please to change any settings to solve the issue, not the code.

    Thanks,
    Mala

    #276561 Reply

    Riyad Kalla
    Member

    Mala,
    Some of the HTML in these examples is invalid and some of it is too complex for the HTML validator to understand (for example processing JSTL conditional clauses). I would suggest either turning off the HTML Validator for the project, OR you can right-click on the individual files, and go down to MyEclipse > Exclude from Validation for those particular files.

    I would suggest turning off HTML validation only though, as excluding the file from validation will exclude it from ALL validation (even JSP validation) which you probably don’t want.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: anchor error

You must be logged in to post in the forum log in