uCosminexus Portal Framework ポートレット開発ガイド
ポートレットでプッシュ配信するには,プッシュ配信したいコンテンツをiframe内に配置して,配置したコンテンツを,Webブラウザに定期的に更新させるようにします。
ポートレットでプッシュ配信するサンプルを次に示します。このサンプルでは,METAタグのhttp-equiv属性を使用しています。
- {PROJECT_HOME}\portlets\emergency\index.jsp
<%@ taglib uri="http://soft.hitachi.co.jp/portal/urlutils" prefix="uu" %> <%@ page import="jp.co.hitachi.soft.portal.portlet.PortletURI" %> <%@ page contentType="text/html; charset=Shift_JIS" %> <uu:iframe src="contents.jsp" width="100%"> IFRAMEをサポートしたWebブラウザを利用願います。 </uu:iframe><br>
- {PROJECT_HOME}\portlets\emergency\contents.jsp
<%@ page contentType="text/html; charset=Shift_JIS" %> <%@ page import="jp.co.hitachi.soft.portal.portlet.PortletURI" %> <html> <head> <title>緊急連絡事項</title> <meta http-equiv="refresh" content="600"><!-- 10分置きに更新 --> </head> <body> <% // ファイル,DBなどから連絡事項を取得して出力 %> </body> </html>
All Rights Reserved. Copyright (C) 2009, 2013, Hitachi, Ltd.
All Rights Reserved. Copyright (C) 2009, 2013, Hitachi INS Software, Ltd.