- This topic has 1 reply, 2 voices, and was last updated 17 years, 1 month ago by Loyal Water.
-
AuthorPosts
-
Victor OttMemberHi,
a colleague asked me to help him verify the validity of a JNDI data source. So I wrote this small page, telling myself it couldn’t get much simpler than that [So have I finally got to use the JSTL sql taglib, everything deserves a chance in life 😉 ]. The page works fine, but the “ME Visual JSP Designer” and “ME JSP Editor” show two errors in the page (the tags marked with <<<=== below), underlined with red “squiggles” and marked with error annotations on the right side of editor window:
. * Missing end tag “c:choose”
. * Missing end tag “c:otherwise”These errors are not shown in the “Problems” view, not even as warnings.
[By the way: if I set Preferences > General > Editors > Text Editors > Annotations > Errors=Show in Text as “Highlighted”, then in all JSP files only the annotation on the right is shown and nothing is highlighted, this must be a ME JSP Editor malfunction.]
** System properties:
OS=WindowsXP
OS version=5.1
Java version=1.6.0_03*** MyEclipse details:
MyEclipse Enterprise Workbench
Version: 6.0.1 GA
Build id: 6.0.1-GA-200710*** Eclipse details:
Eclipse SDK
Version: 3.3.1.1
Build id: M20071023-1652Am I missing something obvious or is this a ME bug?
Thanks in advance,
Victor<%@ page language="java" pageEncoding="ISO-8859-1"%> <%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %> <%@ taglib uri="http://java.sun.com/jstl/sql" prefix="sql" %> <c:catch var="ex"> <sql:setDataSource dataSource="jdbc/theTestDb"/> <sql:query var="resultSet"> select * from test_table </sql:query> </c:catch> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>JNDI/JDBC test page</title> <meta http-equiv="pragma" content="no-cache"> <meta http-equiv="cache-control" content="no-cache"> <meta http-equiv="expires" content="0"> </head> <body> <h3>JNDI/JDBC test page</h3> <c:choose> <<<==================================== <c:when test="${not empty ex}"> <span style="color: red;">Sorry, etwas haut nicht hin:</span> <br/> <c:out value="${ex}" /> </c:when> <c:otherwise> <<<==================================== <p>Results: <c:out value="${resultSet.rowCount}"/></p> <table border="1"> <tr> <c:forEach var="colName" items="${resultSet.columnNames}"> <th><c:out value="${colName}"/></th> </c:forEach> </tr> <c:forEach var="row" items="${resultSet.rows}"> <tr> <c:forEach var="colName" items="${resultSet.columnNames}"> <td><c:out value="${row[colName]}"/></td> </c:forEach> </tr> </c:forEach> </c:otherwise> </c:choose> </body> </html>
Loyal WaterMemberI was able to reproduce the error at those 2 lines you pointed and these errors are not showing up in the Problem window. I’ll file this for my dev team. I’ll get back to you with an update asap.
-
AuthorPosts