Sample: Portlet Template, or Editable Portlet (DisplayURL)
Editor.jspThe code for <!-- Copyright (c) 2003 by SAS Institute Inc., Cary, NC 27513 --> <%@ page language="java" contentType= "text/html; charset=UTF-8" %> <%@ page import="com.sas.portal.portlet.PortletContext" %> <%@ page import="com.sas.portal.portlet.PortletConstants" %> <%@ taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%> <% PortletContext context = (PortletContext) request.getAttribute( PortletConstants.CURRENT_PORTLET_CONTEXT ); %> <table border="0" cellpadding="2" cellspacing="0" align="center" width="100%"> <tr> <td colspan="3"> </td> </tr> <tr> <td> </td> <td nowrap align="center"><fmt:message key="editor.task.txt"/></td> <td> </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <form method="post" action="<%= context.getAttribute( "sas_DisplayURL_EditOkURL") %>"> <td> </td> <td> <table border="0" cellpadding="0" cellspacing="0" align="center"> <td class="celljustifyright" nowrap> <fmt:message key="editor.url.txt"/> </td> <td> </td> <td class="celljustifyleft" nowrap> <input type="text" name="sas_DisplayURL_DisplayURL" value="<%= context.getAttribute("sas_DisplayURL_DisplayURL") %>" size="60"> </td> </tr> <tr> <td colspan="3"> </td> </tr> <tr> <td class="celljustifyright"> <input class="button" type="submit" value="<fmt:message key="editor.action.ok.txt"/>" name="submit" > </form> </td> <td> </td> <td class="celljustifyleft"> <form method="post" action="<%= context.getAttribute( "sas_DisplayURL_EditCancelURL") %>"> <input class="button" type="submit" value="<fmt:message key="editor.action.cancel.txt"/>" name="cancel" > </form> </td> </tr> </table> |