<%@ taglib uri='/WEB-INF/templates/jsp/tld/template.tld' prefix='jetspeed' %>

<p><jetspeed:l10n key="PARAMETER_DEMO_PORTLET_THIS_IS_A_DEMO_OF_JSP"/><code><jetspeed:l10n key="PARAMETER_DEMO_PORTLET_PARAMETER_STYLES_JSP"/></code><jetspeed:l10n key="PARAMETER_DEMO_PORTLET_PARAMETER_STYLES_A_JSP"/><p><jetspeed:l10n key="PARAMETER_DEMO_PORTLET_THE_FOLLOWING_TABLE_JSP"/><%@ page import = "org.apache.turbine.util.Log" %>
<%@ page import = "org.apache.turbine.util.RunData" %>

<%@ page import = "org.apache.jetspeed.portal.Portlet" %>

<%@ page import = "java.util.Hashtable" %>
<%@ page import = "java.util.Enumeration" %>

<TABLE>
    <TR>
        <TH><jetspeed:l10n key="PARAMETER_DEMO_PORTLET_PARAMETER_JSP"/></TH>
        <TH><jetspeed:l10n key="PARAMETER_DEMO_PORTLET_VALUE_JSP"/></TH>
    </TR>
<% 

RunData data = (RunData)request.getAttribute("rundata");
Portlet portlet = (Portlet)request.getAttribute("portlet");
if (portlet != null)
{
    Hashtable parms = new Hashtable();
    parms.putAll(portlet.getPortletConfig().getInitParameters());
    for (Enumeration e = parms.keys(); e.hasMoreElements(); )
    {
        String key = (String) e.nextElement();
        String value = (String) parms.get(key);
%>
    <TR>
        <TD><%=key%></TD>
        <TD><%=value%></TD>
    </TR>
<%
    }
}

%>
</TABLE>

<P><jetspeed:l10n key="PARAMETER_DEMO_PORTLET_HERE_S_AN_EXAMPLE_O_JSP"/><P><jetspeed:l10n key="PARAMETER_DEMO_PORTLET_AVAILABLE_SKINS_JSP"/><jetspeed:parameterStyle name="skin-list" style="RegistryEntryListBox"><jetspeed:l10n key="PARAMETER_DEMO_PORTLET_REGISTRY_SKIN_JSP"/></jetspeed:parameterStyle><jetspeed:l10n key="PARAMETER_DEMO_PORTLET_AVAILABLE_CONTROLS_JSP"/><jetspeed:parameterStyle name="control-list" value="TabControl" style="RegistryEntryListBox"><jetspeed:l10n key="PARAMETER_DEMO_PORTLET_REGISTRY_PORTLETCONT_JSP"/></jetspeed:parameterStyle>

