001
014
015 package com.liferay.portlet.portletsharing.action;
016
017 import com.liferay.portal.struts.PortletAction;
018
019 import javax.portlet.PortletConfig;
020 import javax.portlet.PortletRequestDispatcher;
021 import javax.portlet.ResourceRequest;
022 import javax.portlet.ResourceResponse;
023
024 import org.apache.struts.action.ActionForm;
025 import org.apache.struts.action.ActionMapping;
026
027
030 public class ViewAction extends PortletAction {
031
032 @Override
033 public void serveResource(
034 ActionMapping actionMapping, ActionForm actionForm,
035 PortletConfig portletConfig, ResourceRequest resourceRequest,
036 ResourceResponse resourceResponse)
037 throws Exception {
038
039 String path = "/html/portlet/portlet_sharing/view.jsp";
040
041 PortletRequestDispatcher portletRequestDispatcher =
042 portletConfig.getPortletContext().getRequestDispatcher(path);
043
044 portletRequestDispatcher.include(resourceRequest, resourceResponse);
045 }
046
047 }