/* * Created on Jan 26, 2005 */ package org.chronos.portlets.qdf; import java.io.BufferedReader; import java.io.File; import java.io.IOException; import java.io.InputStreamReader; import java.io.StringWriter; import java.net.MalformedURLException; import java.net.URL; import javax.portlet.ActionRequest; import javax.portlet.ActionResponse; import javax.portlet.GenericPortlet; import javax.portlet.PortletException; import javax.portlet.PortletSession; import javax.portlet.RenderRequest; import javax.portlet.RenderResponse; import javax.xml.transform.Transformer; import javax.xml.transform.TransformerConfigurationException; import javax.xml.transform.TransformerException; import javax.xml.transform.TransformerFactory; import javax.xml.transform.stream.StreamResult; import javax.xml.transform.stream.StreamSource; import org.chronos.portlets.xsl.XSLTPortlet; public class QDFMenuPortlet extends XSLTPortlet { protected void doView(RenderRequest arg0, RenderResponse arg1) throws PortletException, IOException { // put targets into the session PortletSession session = arg0.getPortletSession(); String target = arg0.getParameter("target"); if (target != null) { session.setAttribute("target", target, PortletSession.APPLICATION_SCOPE); } super.doView(arg0, arg1); } public void processAction(ActionRequest arg0, ActionResponse arg1) throws PortletException, IOException { // put targets into the session PortletSession session = arg0.getPortletSession(); String target = arg0.getParameter("target"); if (target != null) { session.setAttribute("target", target, PortletSession.APPLICATION_SCOPE); } super.processAction(arg0, arg1); } }