This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Exporting Data using display tag  RSS feed

Ranch Hand
Posts: 1374
  • Mark post as helpful
  • send pies
  • 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.


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.


Vishal Pandya
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!