Hi
I am trying to implement the struts2 jasperreports tutorial as listed at:
http://struts.apache.org/2.0.14/docs/jasperreports-tutorial.html
When my action executes, the resulting page I get taken to displays the following jargon:
%PDF-1.4 %��3 0 obj <>stream x���]O�0��8���nw3����/�� U���a.�[���i�F��,-<�ěvV �����\ ��}m�n��{!o��[�r��M�,W�Y�d�����O���V�K'k��q�s�#� =���%Ś��&�����ɣ2#�����x���B��U7� �K�n,VL�L�,�eѥSQ��>��O0��/�?�endstream endobj 1 0 obj <>/Parent 4 0 R/Contents 3 0 R/Type/Page/Resources<>/Font<>>>/MediaBox[0 0 595 842]>> endobj 5 0 obj [1 0 R/XYZ 0 854 0] endobj 2 0 obj <> endobj 4 0 obj <> endobj 6 0 obj <> endobj 7 0 obj <> endobj 8 0 obj <>/Pages 4 0 R>> endobj 9 0 obj <> endobj xref 0 10 0000000000 65535 f 0000000352 00000 n 0000000621 00000 n 0000000015 00000 n 0000000709 00000 n 0000000586 00000 n 0000000772 00000 n 0000000826 00000 n 0000000858 00000 n 0000000961 00000 n trailer <]/Info 9 0 R/Size 10>> startxref 1110 %%EOF
The tutorial doesn't mention anything about setting content type or anything else (I presume the plugin will do all that automatically or maybe I am wrong). I have implemented exactly as per that tutorial.
Anyone with any idea as to what is happening or what needs to be done so that I can display the pdf in the browser or even get a link to the pdf on screen? I have searched the web and this forum but cant get anything specific with the struts2 jasperreport plugin.
1 point of note, I had problems in retrieving my .jrxml file when trying to compile into a jasper file. However, I do have a jasper file now and I presume it is compiled correctly.
My conosole outputs the following which makes me believe that my jasper file is compiled fine.
thanks for any assistance