SAS 9.1.3 Integration Technologies » SAS Web Infrastructure Kit: Developer's Guide


Developing Custom Portlets
Development Steps
Creating a Deployment Descriptor
Creating Display Resources Files
Developing the Presentation JSP Page
Creating Action Classes
Implementing Portlet Help
Creating a PAR File
Use Cases
Simple Display Portlet
Localized Portlet
Portlet Template (Editable Portlet)
Remote Portlet
Tips and Best Practices
Using the Portlet API
Sample Portlets
Localized Display Portlet (Welcome)
Interactive Form Portlet (FormExample)
Portlet Template, or Editable Portlet (DisplayURL)
Web Application (HelloUserWikExample)
Remote Portlet (HelloUserRemote
Portlet
Sample: Portlet Template, or Editable Portlet (DisplayURL)

Error.jsp

The code for Error.jsp, which displays messages for any errors that occur during the editing process, follows.

<%-- 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 ); %>

<fmt:message key="error.msg1.txt"/>
<br>
<%= context.getAttribute("Exception_message") %>