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