Menu

Export -- Getting empty page

bib
2005-07-17
2012-10-09
  • bib

    bib - 2005-07-17

    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&amp;d-49653-e=1"><span class="export csv">CSV </span>

    Here is how my app works....

    1. A form is submitted.
    2. Servlet gets the request.
    3. ArrayList object is set in request scope.
    4. Request Dispatcher forwards it to the display page.

    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

     
    • Maju Paul J

      Maju Paul J - 2006-11-14

      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"/>

          &lt;display:column property=&quot;entrydate&quot; /&gt;
          &lt;display:column property=&quot;consingmentid&quot;  /&gt;
          &lt;display:column property=&quot;target&quot; /&gt;
          &lt;display:column property=&quot;destname&quot;  /&gt;
          &lt;display:column property=&quot;weight&quot; /&gt;
          &lt;display:column property=&quot;amount&quot; /&gt;
      
      &lt;display:setProperty name=&quot;export.pdf&quot; value=&quot;true&quot; /&gt;
      

      </display:table>

      here is my code...

      Maju Paul J

       
    • Christopher K Koenigsberg

      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.

MongoDB Logo MongoDB