Sample: Interactive Form Portlet (FormExample)
Step 4: Create the Action ClassThe FormExample portlet has its own action class,
/**Copyright (c) 2003 by SAS Institute Inc., Cary, NC 27513.
* All Rights Reserved.
*/
package com.sas.portal.portlets.formexample;
import java.util.Enumeration;
import java.util.HashMap;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.apache.commons.beanutils.BeanUtils;
import com.sas.portal.portlet.HTMLPortletAction;
import com.sas.portal.portlet.NavigationUtil;
import com.sas.portal.portlet.PortletContext;
/**Action for the Form Example Portlet. This prepares the URL
* that will be assigned to the form's action within the portlet's
* JSP. It also populates a bean with the parameters from the JSP
* form.
*
* @author Todd.Folsom@sas.com
* @version 1
*/
public final class DisplayAction extends HTMLPortletAction {
/**
* Prepare the URL for the form used in the portlet.
* Returns the value of "FormExample.jsp".
*
* @param request The HtppServletRequest associated with the
* method invocation
* @param response HttpServletResponse associated with the
* method invocation
* @param context PortletContext mapped to the request path
*
* @return
|