dsp:link
lets you reference files such as stylesheets or formatting pages and makes them available to the parent page in much the same way as the HTML link
tag.
Note:dsp:link
uses the iclass
attribute in place of the cascading stylesheet class
attribute to avoid using a Java reserved word in Java code.
Attributes
TypeofItem:rel
The rel
attribute describes the kind of item that is referenced.
MIMEtype:type(Required)
The type
attribute contains the MIME type that represents the referenced page. The MIME type must be a recognized MIME type, supported by the MIMETyper
and MIMETypeDispatcher
components.
ReferencedPage:hreforpage(Required)
You must use one of these attributes to specify the page to be referenced in the parent page.
Attribute | Description |
---|---|
| Path and file name. Resolves relative paths using the current page as a starting point. Resolves absolute paths using the Web server doc root as a starting point. |
| Path and file name. Resolves relative paths using the current page as a starting point. Resolves absolute paths using the Web application root as a starting point by prepending the request object’s |
ReferencedPageTitle:title
The title
attribute contains the title as it appears on the referenced page.
Example
<dsp:link rel="stylesheet"
type="text/css"
href="Style.css"
title="Jefferson High School StyleSheet"/>
This example creates a link from the current page to a stylesheet called style.css
that is located in the same directory. The linked page uses the standard MIMETYPE for stylesheets (text/css
) and is titled Jefferson High School Stylesheet
.