Essentials
Download
Documentation
Components
Get Involved
|
|
HTML
Class Name : org.apache.jetspeed.portal.portlets.FileServerPortlet
|
|
Description
|
Present HTML in a portlet.
Why use a HTML portlet instead of a WebPagePortlet?
- HTML is a static
- Not a complete HTML document, i.e. <HEAD> is not in file
- HTML file does not have to be visible to the Web Server
- Specific task can not be achieved with WebPagePortlet
- Desired portlet is just an image, like JPEG or SVG
|
|
Element: url
|
Name of HTML file. This must include the path relative to <jetspeed_home>
This element is required.
|
|
Example of use
|
Portlet Entry
|
|
|
|
<portlet-entry name="Logo" hidden="false" type="ref"
parent="HTML" application="false">
<meta-info>
<title>Logo</title>
<description>Example of HTML portlet</description>
</meta-info>
<url>/Logo.html</url>
</portlet-entry> |
|
|
|
|
<jetspeed_home>/Logo.html
|
|
|
|
<!--
Portlet contains the Jetspeed logo. This could be a
link to SVG graphic trending the corporate stock over the
last 30 days.
-->
<a href="http://jakarta.apache.org/jetspeed">
<img src="images/jetspeed-logo.gif" alt="Jetspeed Logo">
</a> |
|
|
|
|
|
|
|