Jump to content
We've recently updated our Privacy Statement, available here ×

missing page on JasperServer web-page


Henry

Recommended Posts

Hello,

 

i'am using jasperserver 2.1.0. When create a report via the web interface sometimes the last report page are not displayed. At the moment i think this happens only with 2 pages reports.

 

I create a 2 pages report => 1 page is visible.

I press the export to pdf button => 2 pages in the pdf document.

 

If i create the same report in ireports then i have always 2 pages.

 

if i do the same with reports that have 3 or more pages always all pages in the web page are visible.

 

Regards, Henry

Link to comment
Share on other sites

  • Replies 5
  • Created
  • Last Reply

Top Posters In This Topic

This is bug introduced in 2.1 (and fixed after the release).

 

To fix it, replace WEB-INF/jsp/DefaultJasperViewer.jsp with the attached file, or manually edit the file and change the following line

Code:
<c:if test="${lastPageIndex > 1 or configurationBean.paginationForSinglePageReport}">

to

Code:
[code]<c:if test="${lastPageIndex > 0 or configurationBean.paginationForSinglePageReport}">

 

Regards,

Lucian [file name=DefaultJasperViewer.zip size=2193]http://www.jasperforge.org/components/com_joomlaboard/uploaded/files/DefaultJasperViewer.zip[/file]

Post edited by: lucianc, at: 2007/12/17 10:50

Link to comment
Share on other sites

  • 1 month later...

Hi,

 

I had the same problem when i have a report of two pages JasperServer only shows the first page.

 

I tried the above solution it does not work.

 

However, when i changed the following code in the DefaultJasperViewer.jsp it worked finely.

 

Code:
<c:when test="${pageIndex > 0}">

 

To:

 

Code:
[code]<c:when test="${pageIndex >= 0}">

 

Regards,

Link to comment
Share on other sites

itmatrix wrote:

I had the same problem when i have a report of two pages JasperServer only shows the first page.

I tried the above solution it does not work.

 

How can this be reproduced? I've tried a two page report, and it worked fine.

 

The change you suggested results in "First page" and "Previous page" button becoming enabled when the user is located on the first page. Not only that I don't see how would this fix the 2-page report bug, but it's also wrong and results in errors when the "Previous page" button gets clicked.

 

Regards,

Lucian

Link to comment
Share on other sites

  • 6 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...