Hi Tobias
I've previously had the same problem. The cause, in my case, was that I was declaring servlet spec 2.3 in web.xml. I changed this to 2.4 and it resolved the problem. The declaration I have is
<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" version="2.4">
Hope that helps
Regards Andrew
Tobias Eriksson wrote:
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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]