Hitachi

JP1 Version 12 JP1/Navigation Platform ナビゲーション プラットフォーム 開発ガイド


7.2.1 getCustomWindowUrlメソッド

カスタム画面のURLを取得します。このメソッドで取得したURLには,必ずucnpUserPageIdパラメタを指定してください。

〈この項の構成〉

(1) 形式

public static String getCustomWindowUrl(HttpServletRequest request, HttpServletResponse response);

(2) 引数

なし

(3) 戻り値

「ucnpBase」から始まるカスタム画面のURLが返されます。

(4) 例外

なし

(5) 使用例

カスタム画面のJSPファイル内でformタグを使用する場合の例を次に示します。

<%
  String url = CustomWindowUrlUtil.getCustomWindowUrl(request, response);
%>
 
<form action="<%= url %>" method="post" target="_self">
<input type="hidden" name="ucnpUserPageId" value="userCustomPage" />
…略…
</form>