WebSphere Portal, Express Beta Version 6.1
Operating systems: i5/OS, Linux,Windows


 

Displaying "path" details for an item

The path component tag is used to represent certain parts of the URL. The PathCmpnt tag can represent the servlet path, the base path, or the context path of the current page. This tag can be added to presentation templates, element designs and component designs.

<pathcmpnt type=" " start=" " end=" " />
<pathcmpnt Opens a path component tag.
type=" " This determines the type of path component:

base

This returns the base section of a URL. For example,http://hostname:8080

context

This returns the context section of a URL. For example, /ILWWCM

servlet

This returns the servlet path of a URL. For example, /ILWWCM/connect
start=" "

end=" "

The start and end attributes are used to wrap the data returned by a Web content tag within other tags, such as HTML. These attributes are not mandatory.
/> Closes the tag.

Restriction: Using the path component in a portlet.

The URLs generated by the path component will be fully qualified when viewed through a portal. To generate URLs with no prefix, use the following "Type" parameters instead of the standard parameters:

  • Type="noprefixbase" instead of Type="base"
  • Type="noprefixservlet" instead of Type="servlet".
  • Type="Prefix". When viewed through portal the, prefix value will be printed. If no prefix exists then empty string is returned.
Parent topic: Displaying item details
Library | Support | Terms of use |