<#assign nBeginIndex = portlet.pluginPortletTypeName?last_index_of("_")><#assign portletName = portlet.pluginPortletTypeName?substring(0, nBeginIndex)?lower_case> <#switch portlet_jsp_type> <#case 0> <%@ page errorPage="../../ErrorPage.jsp" %> <% ${portletName}Portlet.init( request, ${portletName}Portlet.RIGHT_MANAGE_ADMIN_SITE ); %> <%= ${portletName}Portlet.getModify ( request ) %> <%@ include file="../../AdminFooter.jsp" %> <#break> <#case 1> <%@ page errorPage="../../ErrorPage.jsp" %> <% ${portletName}Portlet.init( request, ${portletName}Portlet.RIGHT_MANAGE_ADMIN_SITE ); response.sendRedirect( ${portletName}Portlet.doModify( request ) ); %> <#break> <#case 2> <%@ page errorPage="../../ErrorPage.jsp" %> <% ${portletName}Portlet.init( request, ${portletName}Portlet.RIGHT_MANAGE_ADMIN_SITE); %> <%= ${portletName}Portlet.getCreate ( request ) %> <%@ include file="../../AdminFooter.jsp" %> <#break> <#case 3> <%@ page errorPage="../../ErrorPage.jsp" %> <% ${portletName}Portlet.init( request, ${portletName}Portlet.RIGHT_MANAGE_ADMIN_SITE ); response.sendRedirect( ${portletName}Portlet.doCreate( request ) ); %> <#break> <#default>