Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想将 Pentaho Report Designer .prpt 文件生成的 HTML 集成到一个 portlet 中。问题是生成的 HTML 是带有<html>,<head>和body标签的完整 HTML 页面。
<html>
<head>
body
如何在 portlet 中显示这样的输出?
一种方法是解析 .prpt 文件并删除您不想要的标记,然后在您的 portlet 中使用已解析的文件。如果报告文件始终采用相同的格式,您可以使用
String.replace
我通过在 Liferay 论坛http://www.liferay.com/community/forums/-/message_boards/message/24039608上提问找到了答案