Вопрос

I'd like to integrate the HTML generated by the Pentaho Report Designer .prpt file into a portlet. The problem is that the HTML generated is a complete HTML page with <html>, <head> and body tags.

How would I display such an output in a portlet?

Это было полезно?

Решение 2

I found my answer by asking on the Liferay forums http://www.liferay.com/community/forums/-/message_boards/message/24039608

Другие советы

One way would be to parse the .prpt file and remove the markup which you don't want, then use the parsed file in your portlet. If the report files are always in the same format, you might be able to do this quickly with

String.replace
Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top