• 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

Problem With Retriving total using Display Tag

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi all,

I tried to retrieve a result in a EXCEL format. I used display tag, I got the expected result. Its a list of numerical values.
After that they require total for that Retrieved numerical Value. I used Var total Option in the display tag. In that i used

<c:out value="${TDPI.coulmn1}"/>

where TDPI is the attribute value for Vartotal in Display Tag.

For the <c:out tag i gone with JSTL.TLD.
I added JSTL & Standard jar. in lib folder and JSTL.TLD in WEB-INF folder. and

<taglib>
<taglib-uri>http://java.sun.com/jstl/core_rt</taglib-uri>;
<taglib-location>/WEB-INF/c.tld</taglib-location>
</taglib>

in my web.xml

after these steps i am getting

ERROR=org.apache.jasper.JasperException: <h3>Validation error messages from TagLibraryValidator for c</h3><p>null: org.xml.sax.SAXParseException: Attribute "class" was already specified for element "display:table".</p>

that page is not at loading.

the field which am retrieving total is double data type.

I am using JSP2 and jboss-4.0.3SP1.

I need your guidance

Thanks in advance

Visu

 
author
Posts: 3285
13
Mac OS X Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post your source code containing the tags, make sure you UseCodeTags :-)
 
Viswanathan Ramamoorthy
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
<display:table id="CustId" name="CustAgingList" class="com.smartconnect.reports.dto.CustAgingReportDTO"cellspacing="10" requestURI="/CustagingReportSpecific.do" pagesize="20"
export="true" class="txthead2" varTotals="TDPI">


<logic:present name="prin360" scope="request">
<display:column property="prin360" title="prin360"total="true"></display:column>
<display:column property="int360" title="int360"></display:column></logic:present> <display:footer><tr> <td>
<c:out value="${TDPI.coulmn1}"/>[/color] </td></tr></display:footer>


for that COUT tags I followed the previous steps

after this
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>

my page showing that error i stated above.

Thanks in advance

Visu



 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic