I am trying to display the data from the request object in the jsp to display in the browser, via the following expressions:
${pageContext.request.contextPath}
${param.name }
${cookie.someCookie.value}
<h3>Item Count: ${items.size() * 2 }</h3>
and for whatever reasons the values are not being returned. The other properties are being returned by the items object though. What am I missing here?
Thanks,
CM
jsp
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>
<head>
<title>H+ Sports</title>
<style type="text/css">
body {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
}
.header {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 18px;
}
.bottom {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 9px;
text-align: center;
vertical-align: middle;
color: #8E969D;
}
</style>
<link type="text/css" rel="stylesheet" href="resources/css/global.css" />
</head>
<body>
<table style="border: 1px solid #CAD6E0" align="center" cellpadding="0"
cellspacing="0" border="0" width="400">
<tbody>
${pageContext.request.contextPath}
${param.name }
${cookie.someCookie.value}
<h3>Item Count: ${items.size() * 2 }</h3>
<tr>
<th>Names</th>
<th>Manufacturer</th>
<th>SKU</th>
</tr>
<c:forEach items="${items}" var="item">
<td >
<c:out value="${item.name}"/>
</td>
<td >
${item.manufacturer}
</td>
<td >
${item.sku}
</td>
</c:forEach>
</tbody>
</table>
</body>
</html>