• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 
Bartender
Posts: 2700
IntelliJ IDE Opera
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the JSP forum.
 
William Peck
Ranch Hand
Posts: 54
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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>
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic