public class HtmlPortlet
extends GenericPortlet
You only need to define the url of the page.
In this way:
The Languages param is optional.My page Page mypage Supported languages Languages en,es,de
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PARAM_LANGUAGES |
static java.lang.String |
PARAM_PAGE
Name of HTML page to serve.
|
Constructor and Description |
---|
HtmlPortlet() |
Modifier and Type | Method and Description |
---|---|
void |
doView(RenderRequest request,
RenderResponse response)
Return the page specified in init parameter PARAM_PAGE.
|
void |
init(PortletConfig config) |
public static final java.lang.String PARAM_PAGE
public static final java.lang.String PARAM_LANGUAGES
public void init(PortletConfig config) throws PortletException
PortletException
public void doView(RenderRequest request, RenderResponse response) throws PortletException, java.io.IOException
PortletException
java.io.IOException