//PortletRequestDispatcher rd = getPortletContext().getRequestDispatcher("admin/admin.jsp");
//rd.include(request, response);
// Use an alias
PortletApplicationRegistry registry = (PortletApplicationRegistry)getPortletContext().getAttribute(WebBootstrap.BEAN_PREFIX + "PortletApplicationDeployer");
//
writer.print("" +
"" +
"" +
"<div class=\"admin-container full-width\">\n" +
" <div class=\"admin-header\">\n" +
" <div class=\"expand\">\n" +
" <img src=\"/simple-portal/images/admin/expand.gif\" alt=\"\"/><a href=\"javascript:expandAll();\">Expand All</a>\n" +
" </div>\n" +
" <div class=\"collapse\">\n" +
" <img src=\"/simple-portal/images/admin/contract.gif\" alt=\"\"/><a href=\"javascript:collapseAll();\">Collapse All</a>\n" +
" </div>\n" +
" </div>\n");
for (ManagedPortletApplication application : registry.getManagedPortletApplications())
{
PortletURL url = resp.createActionURL();
url.setParameter("application", application.getId());
//