Entering content frame

Procedure documentation Starting Portal Objects Locate the document in its SAP Library structure

Use

When PRT receives an HTTP request, the prtroot URL parameter specifies the unique name of the object that has to be started. This name is a JNDI name and the syntax used is non PRT-specific.

Procedure

PRT checks if the object implements the IPropertyContentProvider interface. This interface is the entry point providing all information that PRT needs to find the portal archive, the portal application and finally the implementation class that will be responsible for the rendering. To get the object, PRT calls the lookup method on the Initial JNDI Context. Use the following source:

This graphic is explained in the accompanying text

Object o = null;

try {

   o = initialContext.lookup(prtroot);

} catch (Exception e) {

}

 

if (o != null && o instanceof IPropertyContentProvider) {

   provider = (IPropertyContentProvider) o;

} else {

   throw new PortalRuntimeException("Portal object not found: " + prtroot);

}

 

 

 

Leaving content frame