Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
William Peck
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


 
Wouter Oet
Saloon Keeper
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Moved to the JSP forum.
 
William Peck
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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>
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic