From: dajevtic <nu...@jb...> - 2005-05-16 12:38:51
|
Of course. Here is a small code snippet of how it can be used: Portlet with form: public void processAction(ActionRequest request, ActionResponse response) { PortletFormManager.getInstance().setFormData(request); } places all request parameter names and parameter values into the PortletFormManager. Portlet displaying the values: Hashtable requestParameters = PortletFormManager.getInstance().getObject(request.getPortletSession().getId()); if (requestParameters != null) { Iterator parameterValues = requestParameters.values().iterator(); while (parameterValues.hasNext()) { System.out.println((String)parameterValues.next()); } } This is the easiest way. The PortletFormManager also has methods for retrieving the form data as a Map, Collection or Enumeration. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3877822#3877822 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3877822 |