pathInfo - Path Info
Identifies the location of a service relative to the XPage.
Category
basicsSyntax
pathInfo="endofurl"
Usage
In Design mode, click All Properties and look for pathInfo under basics.The
URL for accessing a service takes the following form. The
pathinfo
property
specifies the end of the URL before any query string.http://myserver/mydatabase.nsf/myxpage.xsp/pathInfo
Examples
This example exposes a REST service then uses a button to call the service and redirect its JSON output to the local file system.<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>