facebook

JSP Errors that aren’t errors; Wierd things happening

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #284692 Reply

    Glenn Puckett
    Participant

    Since I upgraded to Eclipse 3.3 and MyEclipse 6.x I have had quite a few recurring problems that have become quite bothersome. I would like to see a fix for some of this. It sure would make life easier. I appologize for the length of this post. But I know it is important to provide examples of problems.

    I have MyEclipse v6.0.1.GA build ID 6.0.1-FA-200710 installed. I have been developing an Enterprise Application Project for some time. The Web application is using Struts and I am using Entity EJB2 objects in the EJB application. I am using JBoss v4.x and frequently debug using the MyEclipse/JBoss interface.

    I actually started phase one of the development using MyEclipse v5.x and had no complaints at all. I had a couple of nagging issues that carried over to v6.x but nothing too glaring. Since I upgraded to v6.x things have gotten much more aggravating.

    One thing that I have encountered in both v5 and v6 is that the syntax editor does not properly verify the syntax of some of my code. I have numerous cases of valid code that is flagged with syntax errors. Sometimes it is flagged with a warning, other times as an error. In all cases the code executes perfectly. It becomes difficult to find the actual problems in among all the invalid warnings and errors.

    I will provide a few examples:

    Warnings —

    In the following example the “<table>” entry is flagged. The error is Invalid Location Of Tag (table). I get this warning a lot. If I put a <span> or <div> around a table or a table row it will be flagged.

    
    <span id="parcelHdr">
        <table border=0 cellpadding=0 cellspacing=0 width="100%">
            <tr>
    

    In the following example the second select is flagged with a warning. The warning is No end tag (/select)

    
    <%
        if(opt.equals("T")) {
    %>
                                <td>Please choose a Tax District</td>
                                <td>
                                    <select name="taxDist" style="width:350px;margin:5px 0 5px 0;">
    <%
        } else {
    %>
                                <td>Please choose a School District</td>
                                <td>
                                    <select name="schoolDist"style="width:350px;margin:5px 0 5px 0;">
    <%
        }
        for(java.util.Iterator itor=optList.iterator(); itor.hasNext();) {
            java.util.Map.Entry ent = (java.util.Map.Entry)itor.next();
            String tid = (String)ent.getKey();
            String tdsc = (String)ent.getValue();
                %>
                                        <option value="<%=tid %>" >[<%=tid %>] <%=tdsc%></option>
                <%
        }                                                    
    %>
                                    </select>
    

    Here is an HTML line that was flagged with 2 warnings. One warning is Undefined attribute name (Menu2). The other is the same warning for attribue id1;

    
    <td width="40px" id=id1 onmouseout=btnTimer() onmouseover=showLayer("Menu2",'id1',0,20) class="bg2"><a href="/infoSearch.jsp">Search</a></td>
    

    Errors —-

    In the following example I had to wrap some struts logic around some java code. The syntax editor seems to get lost and miss the end tag. The error is Missing end tag (/logic:notEmpty)

    
    <logic:notEmpty name="landdata" property="areaEntryList">
                                    <div id="sumtab">
                                    <table class="border1 padding2"width="100%">
                                        <tr>
                                            <td class="hdr center" colspan="11">Areas</td>
                                        </tr>
                                        <tr>
                                            <td class='head'>Code</td>
                                            <td class='head'>Area Type</td>
                                            <td class='head'>Size</td>
    <logic:equal name="showVals" value="true">
                                            <td class='head'>Value</td>
    </logic:equal>
                                        </tr>
    <%
    tShowing = "A";
    landdata.areaReset();
    lcnt=0;
    String areaDesc = "";
    while(landdata.areaEntryNext()) {
        if((++lcnt)%2 == 0)
            tClass = "even";
        else
            tClass = "odd";
        if(landdata.getAreaEntType().substring(0,1).equalsIgnoreCase("A"))
            areaDesc = "Acres";
        else
            areaDesc = "SqFt";
    %>
                                        <tr>
                                            <td class="<%=tClass%> data center">
                                                <bean:write name="landdata" property="areaEntType" />
                                            </td>
                                            <td class="<%=tClass%> data center">
                                                <bean:write name="landdata" property="areaEntTypeDesc" />
                                            </td>
                                            <td class="<%=tClass%> data center">
                                                <logic:greaterThan name="landdata" property="areaEntSize" value="0">
                                                    <bean:write name="landdata" property="areaEntSize" format="###,###,##0.000" /> <%=areaDesc%>
                                                </logic:greaterThan>
                                                <logic:equal name="landdata" property="areaEntSize" value="0">
                                                    <img src="/images/sp.gif" width="1px" height="1px" border="0" alt="" />
                                                </logic:equal>
                                            </td>
                                        <logic:equal name="showVals" value="true">
                                            <td class="<%=tClass%> data center">
                                                <logic:greaterThan name="landdata" property="areaEntEstTrueValue" value="0">
                                                    $<bean:write name="landdata" property="areaEntEstTrueValue" format="###,###,##0" />
                                                </logic:greaterThan>
                                                <logic:equal name="landdata" property="areaEntEstTrueValue" value="0">
                                                    <img src="/images/sp.gif" width="1px" height="1px" border="0" alt="" />
                                                </logic:equal>
                                            </td>
                                        </logic:equal>
                                        </tr>    
    <%
    } // end while(landdata.areaEntryNext())
    %>
                                    </logic:notEmpty>
    

    Another problem that I have been encountering is during debug. If I go to expand a data object it takes minutes to expand and will max out the cpu. This did not happen on v5.

    I have line numbers turned on in my java editor. Today they just went away and I couldn’t scroll the code. I had to close down MyEclipse and restart it before I could continue.

    Is this just me? Have I set something up improperly? Or maybe installed something incorrectly? I love this tool. But I sure would like to find a way to eliminate some of these issues. If others are having similar problems please feel free to post on this thread. If this reflects some general problems I’m sure it would help the MyEclipse folks to hear from more developers than just me.

    Thanks for any feedback.

    Glenn Puckett

    #284725 Reply

    Loyal Water
    Member

    In the following example the “<table>” entry is flagged. The error is Invalid Location Of Tag (table). I get this warning a lot. If I put a <span> or <div> around a table or a table row it will be flagged.

    This seems like a known html issue, I was going through another forum and this has been reported over there as well. The validation fails but the tags work just fine. I’ll get the dev team to take a look at this issue.
    http://www.webmasterworld.com/forum21/8068.htm

    <td width=”40px” id=id1 onmouseout=btnTimer() onmouseover=showLayer(“Menu2″,’id1′,0,20) class=”bg2″><a href=”/infoSearch.jsp”>Search</a></td>

    I guess this is how this line should be.

    
    <table>
        <tr>
       <td width="40px" id="id1" onmouseout="btnTimer()" onmouseover="showLayer('Menu2','id1',0,20)" class="bg2"><a href="/infoSearch.jsp">Search</a>
       </td>
       </tr> 
         </table>
    

    Another problem that I have been encountering is during debug. If I go to expand a data object it takes minutes to expand and will max out the cpu. This did not happen on v5.

    I have line numbers turned on in my java editor. Today they just went away and I couldn’t scroll the code. I had to close down MyEclipse and restart it before I could continue.

    Do you have the memory arguments entered in your eclipse.ini file to optimize MyEclipse ?

    For the remaining issues, can you please create a sample project and send it accross to me. I would like to test this at my end as well. You can hit the pm button and upload the project for me.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: JSP Errors that aren’t errors; Wierd things happening

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