M
Mongoose
Hi All,
I have an arraylist of objects. Each object has 3 properties. They
are:
DefectID - Integer
Description - VARCHAR
PriorityID - Integer
I hit my Oracle database and poplulate a list with the aforementioned
objects. I'm just trying to display the list in my .jsp page. Can
someone please tell me what is wrong the code in my .jsp page that is
shown below?
Thanks
-------------------------------------------------------------------------------------------------------------------------------------------------
<%@page import="java.util.ArrayList"%>
<%@page import="EricEnhancementServiceImpl" %>
<%@ page import="java.util.*" %>
<%
List results = new ArrayList();
EricEnhancementServiceImpl E = new EricEnhancementServiceImpl();
results = E.getDefects1();
pageContext.setAttribute("defects", results, pageContext.PAGE_SCOPE);
%>
<html>
<head>
<title>display</title>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
</head>
<body>
<table border="1" width="80%">
<tr><th>Description</th></tr>
<c:forEach var="defect" items="${PageScope.defects}">
<tr>
<td><c
ut value="${defect.Description}"/></td>
</tr>
</c:forEach>
</table>
</body>
</html>
I have an arraylist of objects. Each object has 3 properties. They
are:
DefectID - Integer
Description - VARCHAR
PriorityID - Integer
I hit my Oracle database and poplulate a list with the aforementioned
objects. I'm just trying to display the list in my .jsp page. Can
someone please tell me what is wrong the code in my .jsp page that is
shown below?
Thanks
-------------------------------------------------------------------------------------------------------------------------------------------------
<%@page import="java.util.ArrayList"%>
<%@page import="EricEnhancementServiceImpl" %>
<%@ page import="java.util.*" %>
<%
List results = new ArrayList();
EricEnhancementServiceImpl E = new EricEnhancementServiceImpl();
results = E.getDefects1();
pageContext.setAttribute("defects", results, pageContext.PAGE_SCOPE);
%>
<html>
<head>
<title>display</title>
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
</head>
<body>
<table border="1" width="80%">
<tr><th>Description</th></tr>
<c:forEach var="defect" items="${PageScope.defects}">
<tr>
<td><c
</tr>
</c:forEach>
</table>
</body>
</html>