tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tobias Eriksson" <tobias.eriks...@comopt.com>
Subject can't use EL <c:out value="${obj.names}"....
Date Mon, 16 Aug 2004 11:56:36 GMT
Hi

 For some reason I'm having difficulties getting something as simple as
this to work, see below.

 The result I get is this, see below. It seems to me that the
VALUE-attribute is not evaluated. I've downloaded the JSTL-package from
apache's homepage and I've included the tld and jar files in the WEB-INF
dir.

 I am not sure what to try next, so any pointers would be appreciated.

Regards

 Tobias

 

*******************

 

This is my JSP page. 
77 
${ttt.val} 
Name: ${ttt.val}
Parameter values passed to this page for each parameter: 

${current.key} 

${aVal} 

 

 

 

**************

 

 

<%@ page language="java" import="java.lang.*,java.util.*" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

 

<html>

  <head>

    <base href="<%=basePath%>">

    

    <title>My JSP Tag-test page</title>

    

  </head>

 

  <body>

  

    This is my JSP page. <br>

    

<jsp:useBean id="ttt" class="com.comopt.support.beans.TestBean"
scope="request" />

<jsp:getProperty name="ttt" property="val" />

<BR>

<c:out value="${ttt.val}" />

<BR>

<c:forEach items="${ttt.Names}" var="aname">

   Name: <c:out value="${ttt.val}" /><BR>

</c:forEach>    

 

 

<b>Parameter values passed to this page for each parameter: </b>

<table border="2">

<c:forEach var="current" items="${param}">

    <tr>

    <td>

    <b><c:out value="${current.key}" /></b>

    </td>

        <c:forEach var="aVal" items="${paramValues[current.key]}">

            <td>

            <c:out value="${aVal}" />

            </td>

        </c:forEach>

    </tr>

</c:forEach>

</table>

 

 

  </body>

</html>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message