Package com.opensymphony.webwork.portlet.result

Source Code of com.opensymphony.webwork.portlet.result.PortletDispatcherResult

package com.opensymphony.webwork.portlet.result;

import javax.portlet.PortletSession;

import com.opensymphony.webwork.portlet.WebWorkPortletStatics;
import com.opensymphony.webwork.portlet.context.PortletActionContext;
import com.opensymphony.xwork.ActionInvocation;
import com.opensymphony.xwork.Result;


/**
* @author Henry Hu  -- hu_pengfei@yahoo.com.cn
* @since 2005-7-6
*/
public class PortletDispatcherResult implements Result, WebWorkPortletStatics {
    private String _location;

    public void setLocation(String location) {
        _location = location;
    }

    public void execute(ActionInvocation invocation) throws Exception {
        PortletSession portletSession = (PortletSession) PortletActionContext.getPortletSession();
        portletSession.setAttribute(RENDER_TEMPLATE, _location);
    }
}
TOP

Related Classes of com.opensymphony.webwork.portlet.result.PortletDispatcherResult

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.