File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JSP and the fly likes Need to display data on jsp, above table containing the recordset Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "Need to display data on jsp, above table containing the recordset" Watch "Need to display data on jsp, above table containing the recordset" New topic
Author

Need to display data on jsp, above table containing the recordset

William Peck
Ranch Hand

Joined: Dec 18, 2009
Posts: 54
I want to display this

Error summary for
source ${errors.sourceCd} on ${errors.loadDate},
load id = ${errors.errorsId}

above this

errors Description
1,305 MED_COV Dup Found
670 MEM_MEMB_TEFRA Dup Found
12 MEM_MEMB_WHCR Dup Found
36 MEM_OTH_INS_CARR Dup Found
8 MEM_SUB_GRP_PRODT Dup Found
2 MEM_XREF Dup Found

but I'm not sure how to get the data for the header (what I have prints blank). The data in the table retrieved in a loop, but apparently I can't use that as constructed.

The data I'm trying to display is in the recordset, I only display the two columns errors and Description

Below is the jsp and the DAO Impl



Bill in Baltimore
Wouter Oet
Saloon Keeper

Joined: Oct 25, 2008
Posts: 2700

Moved to the JSP forum.


"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." --- Martin Fowler
Please correct my English.
William Peck
Ranch Hand

Joined: Dec 18, 2009
Posts: 54
I resolved this from a local colleague.

I used a "forEach" for my header (in addition to the forEach in my main data table), plus limiting this to the first row via "begin ="0" end="0"

<c:forEach var="errors" items="${model.list}" begin="0" end="0">
<h2>Error summary for
source ${errors.sourceCd} on <fmt:formatDate value="${errors.loadDate}" pattern="E, MMM dd"/>,
load id = ${errors.errorsId } </h2>
</c:forEach>
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Need to display data on jsp, above table containing the recordset
 
Similar Threads
jquery accordion is causing jquery treeview picker to breakup
Oracle error on jsp page, but the sql runs fine in Oracle tool
Cannot get new screen to work properly; similar screen was recently added successfully
Can't resolve errors in Java / Spring / Oracle application, trying to add a new screen
FreeMarker template error