<%@ 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 = "org.apache.jetspeed.modules.ParameterLoader" %>

<%@ 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>
<%
Hashtable map = new Hashtable();
map.put("skin-list.style.registry", "Skin");
%><jetspeed:l10n key="PARAMETER_DEMO_PORTLET_AVAILABLE_SKINS_JSP"/><%=ParameterLoader.getInstance().eval(data, "RegistryEntryListBox","skin-list", null, map)%>

