Hi - I am building a blog in the JSP and JSTL and EL and Tomcat and MySQL.

So far I have installed Tomcat 5, with MySQL 4.x.x, and the Jakarta Core Tags version 2, all seems to be functioning. I am using Intellij IDEA 4.5 as my IDE. Now all seems to be running fine, no errors, Intellij IDEA is configured and sees what it needs, and look happy.

Problem 01 - My EL expressions in my <c:out value="${some Expression}" /> are not being evaluated, they look right but the expressions are just printed out on the screen like this ${some Expression} as plain text. Now it is not a problem with my tags because my <c:choose> tags and others work fine. So it looks my core tags are working, but why are my expressions not being executed?

 Here is the page any suggestions?

-Kurt

code:


<%@ taglib uri="/WEB-INF/tld/c.tld" prefix="c" %> <%@ taglib uri="/WEB-INF/tld/sql.tld" prefix="sql" %> <%@ taglib uri="/WEB-INF/tld/fmt.tld" prefix="fmt" %> <%@ taglib uri="/WEB-INF/tld/x.tld" prefix="x" %>

<html>
  <head>
    <title>Search Result</title>
  </head>
  <body bgcolor="white">

      <p>Create a <a href="newCreate.jsp">new Blog</a></p>

  <c:choose>
    <c:when test="${not empty listQuery.rows}">
      Sorry, no existing blogs were found.
    </c:when>
    <c:otherwise>

      The following soapbox articles were found:

        <table border="1">
            <th>ID</th>
            <th>Date Created</th>
            <th>Date Last Modified</th>
            <th>Article Status</th>
            <th>Article Title</th>
            <th>Article Summery</th>
            <th>Edit</th>
            <th>Delete</th>

<c:forEach items="${listQuery.rows}" var="row">
<tr>
<td><c:out value="${row.id}" /></td>
<td><c:out value="${row.dateCreated}" /></td>
<td><c:out value="${row.dateLastModified}" /></td>
<td><c:out value="${row.articleStatus}" /></td>
<td><c:out value="${row.articleTitle}" /></td>
<td><c:out value="${row.articleSummery}" /></td>
<td><a href="currentQuery.jsp?id=<c:out value="${row.id}" />">Edit</a></td>
<td><a href="delete.jsp?id=<c:out value="${row.id}" />">Delete</a></td>
</tr>
</c:forEach>
</table>


    </c:otherwise>
  </c:choose>

  </body>
</html>

Reply via email to