org.openxava.web.portlets
Class HtmlPortlet

java.lang.Object
  extended by GenericPortlet
      extended by org.openxava.web.portlets.HtmlPortlet

public class HtmlPortlet
extends GenericPortlet

Return a HTML page.

You only need to define the url of the page.
In this way:

  
  
    
      My page
      Page
      mypage
      
    
    
      Supported languages
      Languages
      en,es,de
      
        
  
 
The Languages param is optional.

Author:
Javier Paniza

Field Summary
static java.lang.String PARAM_LANGUAGES
           
static java.lang.String PARAM_PAGE
          Name of HTML page to serve.
 
Constructor Summary
HtmlPortlet()
           
 
Method Summary
 void doView(RenderRequest request, RenderResponse response)
          Return the page specified in init parameter PARAM_PAGE.
 void init(PortletConfig config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARAM_PAGE

public static final java.lang.String PARAM_PAGE
Name of HTML page to serve.

See Also:
Constant Field Values

PARAM_LANGUAGES

public static final java.lang.String PARAM_LANGUAGES
See Also:
Constant Field Values
Constructor Detail

HtmlPortlet

public HtmlPortlet()
Method Detail

init

public void init(PortletConfig config)
          throws PortletException
Throws:
PortletException

doView

public void doView(RenderRequest request,
                   RenderResponse response)
            throws PortletException,
                   java.io.IOException
Return the page specified in init parameter PARAM_PAGE.

Throws:
PortletException
java.io.IOException