Hi All
In my jsp page, I have used Displaytag with export=true. The table is displayed with data. I get the export links under my table.
But when I click on the csv/excel/xml link I get a blank page.
I looked at the source of the jsp page displayed, the links look like this..
<a href="/myApp/user.jsp?6578706f7274=1&d-49653-e=1"><span class="export csv">CSV </span>
Here is how my app works....
In the jsp page <display:table name="groups" defaultsort="1" export="true" defaultorder="ascending" class="simple" excludedParams="*">
Now I can see the table with data fine.. just can't see it in Excel/CSV/XML....
Any idea where I could be wrong... Thanks for help.
Bib
hi....
I'm having a same kind of error where i'm getting the table perfectly but on exporting its showing a blank page . i'm using dispatch action and so i have enabled the export filter
any idea????
<% request.setAttribute( "test", request.getAttribute("list") ); %>
<display:table name="test" export="true" id="currentRowObject"> <display:setProperty name="export.rtf.filename" value="example.rtf"/>
<display:column property="entrydate" /> <display:column property="consingmentid" /> <display:column property="target" /> <display:column property="destname" /> <display:column property="weight" /> <display:column property="amount" /> <display:setProperty name="export.pdf" value="true" />
</display:table>
here is my code...
Maju Paul J
I think once you have a RequestDispatcher.forward involved, you need to enable the export filter (ResponseOverrideFilter).
I know this is true for an "include", but I guess it's true for a "forward" too . (?)
Log in to post a comment.
Hi All
In my jsp page, I have used Displaytag with export=true. The table is displayed with data. I get the export links under my table.
But when I click on the csv/excel/xml link I get a blank page.
I looked at the source of the jsp page displayed, the links look like this..
<a href="/myApp/user.jsp?6578706f7274=1&d-49653-e=1"><span class="export csv">CSV </span>
Here is how my app works....
In the jsp page
<display:table name="groups" defaultsort="1" export="true" defaultorder="ascending" class="simple" excludedParams="*">
Now I can see the table with data fine..
just can't see it in Excel/CSV/XML....
Any idea where I could be wrong...
Thanks for help.
Bib
hi....
I'm having a same kind of error where i'm getting the table perfectly but on exporting its showing a blank page . i'm using dispatch action and so i have enabled the export filter
any idea????
<%
request.setAttribute( "test", request.getAttribute("list") );
%>
<display:table name="test" export="true" id="currentRowObject">
<display:setProperty name="export.rtf.filename" value="example.rtf"/>
</display:table>
here is my code...
Maju Paul J
I think once you have a RequestDispatcher.forward involved, you need to enable the export filter (ResponseOverrideFilter).
I know this is true for an "include", but I guess it's true for a "forward" too . (?)