• 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

Exporting Data using display tag

 
Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello Friends,

I am getting the following exception when i try to export the data using display tag's built-in facility.

***********************Exception********************



Now,it doesn't face any problem while displaying data in table form on the page but when i try to export it (csv,excel,xml) then it fires the above exception.This is bit surprising to me.

The dispalytag related tags are in a jsp. This jsp is included in a Spring tag handler class by pageContext.include("xyz.jsp"). This tag(defined by the Spring Tag Handler class) is being used in another jsp where the table is displayed. Paging works perfectly, but when I click on export, the exception occurs.

I am using the followings:
JDK1.5,Displaytag 1.1 and Spring 1.2.7

The Actual flow is something like this.

1)Controller forwards the request to jsp page.

2)This jsp page uses a custom tag.

3)Now,it goes to custom tag handler class where i set the all the data into request like



4)Then i have included the page like



5)This xyz.jsp contains the following code.



Here,i get all the data on the page.

5)So,in this way the page is getting rendered.


I have also included filter into web.xml file.

Hope i have provided all the information.
I think i haven't made any silly mistake.

Looking forward to hear from you.

Thanks

Vishal Pandya
 
reply
    Bookmark Topic Watch Topic
  • New Topic