pathInfo - パス情報

XPage に対するサービスの相対ロケーションを識別します。

カテゴリ

basics

構文

pathInfo="endofurl"

使用法

設計モードで、[すべてのプロパティ] をクリックし、[basics] の下の [pathInfo] を探します。
サービスにアクセスするための URL は、以下のフォームを使用します。pathinfo プロパティは、照会ストリングの前の URL の末尾を指定します。
http://myserver/mydatabase.nsf/myxpage.xsp/pathInfo

以下の例は、REST サービスを公開した後、ボタンを使用してサービスを呼び出し、その JSON 出力をローカルファイルシステムにリダイレクトします。
<xe:restService id="restService1" pathInfo="dbPathInfo">
	<xe:this.service>
	<xe:databaseCollectionJsonService></xe:databaseCollectionJsonService></xe:this.service>
</xe:restService>
<xp:button id="button1" value="Database Collection">
	<xp:eventHandler event="onclick" submit="true">
		<xp:this.action><![CDATA[#{javascript:
	facesContext.getExternalContext().getResponse().sendRedirect(@FullUrl("restService.xsp/dbPathInfo"))
	}]]></xp:this.action>
	</xp:eventHandler>
</xp:button>