public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException { Map<String,String[]> paramMap = request.getParameterMap(); Set<String> params = paramMap.keySet(); for(String param:params){ //string array check String[] paramValues = paramMap.get(param); response.setRenderParameter(param, paramValues); } }
public void processAction(ActionRequest req, ActionResponse res) throws PortletException, PortletSecurityException, IOException { Map<String, String[]> params = req.getParameterMap(); for (Map.Entry<String, String[]> param : params.entrySet()) { String name = param.getKey(); if (name.equals("scriptUrl") || name.startsWith("arg.")) { res.setRenderParameter(name, param.getValue()); } } }
public void processAction(ActionRequest req, ActionResponse res) throws PortletException, PortletSecurityException, IOException { Map<String, String[]> params = req.getParameterMap(); for (Map.Entry<String, String[]> param : params.entrySet()) { String name = param.getKey(); if (name.equals("scriptUrl") || name.startsWith("arg.")) { res.setRenderParameter(name, param.getValue()); } } }
public void processAction(ActionRequest req, ActionResponse res) throws PortletException, PortletSecurityException, IOException { Map<String, String[]> params = req.getParameterMap(); for (Map.Entry<String, String[]> param : params.entrySet()) { String name = param.getKey(); if (name.equals("scriptUrl") || name.startsWith("arg.")) { res.setRenderParameter(name, param.getValue()); } } }
@Override public void processAction(ActionRequest actionRequest, ActionResponse actionResponse) throws PortletException, IOException { //Add all the parameters to the actionResponse Attributes so we can get the back actionResponse.setRenderParameters(actionRequest.getParameterMap()); }
public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException { Map<String,String[]> paramMap = request.getParameterMap(); Set<String> params = paramMap.keySet(); for(String param:params){ response.setRenderParameter(param, paramMap.get(param)[0]); } }
@Override public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException { log.debug("WingS-Portlet-Bridge: start with processAction()"); // store the parameters PortletSession portletSession = request.getPortletSession(); Map parameters = request.getParameterMap(); String portletMode = request.getPortletMode().toString(); portletSession.setAttribute(portletMode + ':' + Const.SESSION_ATTR_PARAMETERS, parameters, PortletSession.PORTLET_SCOPE); log.debug("WingS-Portlet-Bridge: stored parameters in sesseion under " + portletMode + ':' + Const.SESSION_ATTR_PARAMETERS); log.debug("WingS-Portlet-Bridge: ended processAction()"); }
static public void requestParamsToPreferences(ActionRequest request) throws PortletException Map params = request.getParameterMap(); PortletPreferences prefs = request.getPreferences(); Map prefsMap = prefs.getMap();
static public void requestParamsToPreferences(ActionRequest request) throws PortletException Map params = request.getParameterMap(); PortletPreferences prefs = request.getPreferences(); Map prefsMap = prefs.getMap();
for (final Iterator it = request.getParameterMap().entrySet().iterator(); it.hasNext();)
public void processAction(ActionRequest request, ActionResponse response) throws PortletException, IOException { final PortletSession session = request.getPortletSession(); final Map parameterMap = request.getParameterMap(); if (parameterMap.containsKey(START_COMMAND)) { final String reqFname = request.getParameter(FNAME_ATTRIBUTE);
for (final Iterator it = request.getParameterMap().entrySet() .iterator(); it.hasNext();) { final Entry entry = (Entry) it.next();
for (Iterator it = request.getParameterMap().entrySet().iterator(); it.hasNext(); )
if (request.getParameterMap().containsKey(RESET_PREFS)) { prefs.getPreferences().clear(); if (request.getParameterMap().containsKey(ADD_PREF)) { response.setRenderParameter("ADD_NEW_PREF", "TRUE");
Map webContentParams = new HashMap(actionRequest.getParameterMap()) ;
Map webContentParams = new HashMap(actionRequest.getParameterMap()) ;