Jump to content

enable xhtml please


nglorieux

Recommended Posts

  • Replies 8
  • Created
  • Last Reply

Top Posters In This Topic

  • 3 weeks later...

I found a way to enable xhtml for my reports:

I downloaded the source code of CE, modified the JasperViewerTag class to use JRXhtmlExporter instead of JRHtmlExporter. Compiled with maven.

deployed the new jasperserver-war-jar-3.7.0.jar in the WEB-INF/lib

Modified the type of the exporter bean in DefaultJasperViewer.jsp to be JRXhtmlExporter.

and I now have xhtml for my reports, not trivial to figure out, not sure this is the best way, but it is at the end an easy way.

 

Link to comment
Share on other sites

here is the recompiled jar

make sure you use 3.7.0 as jasperserver

 

and don't forget to change the type of the bean in WEB-INF/jsp/DefaultJasperViewer.jsp

<

jsp:useBean id="exporter" type="JRXhtmlExporter" scope="request"/>

 

let me know if it works out for you

 

Link to comment
Share on other sites

  • 3 months later...

We've tried this on our jasperserver-pro with the following error when accessing a report:

org.springframework.beans.NotWritablePropertyException: Invalid property 'requestParameterAnchor' of bean class [com.jaspersoft.jasperserver.war.action.ViewReportAction]: Bean property 'requestParameterAnchor' is not writable or has an invalid setter method. Does the parameter type of the setter match the return type of the getter?

Is there a jasperserver-pro build available?

Link to comment
Share on other sites

  • 3 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...