| com.nabhinc.portlet.mvcportlet.common.BaseAttributeSetter com.nabhinc.portlet.mvcportlet.actionprocessor.AttributeSetter
AttributeSetter | public class AttributeSetter extends BaseAttributeSetter implements ActionProcessor(Code) | | Sets attribute values from request parameters or preferences. For setting attributes
from request parameters, the action processor is
configured as follows:
<action-processor name="AttrSetter"
class="com.nabhinc.portlet.mvcportlet.actionprocessor.AttributeSetter">
<params>param1,param2,param3</params>
<scope>scopeString</scope>
<attributes>attr1,attr2,attr3</attributes>
</action-processor>
"params" is a comma separated list of request parameters. If you want to set attributes
from portlet preferences, use "prefs" tag. Only one of these two tags must be specified.
"scope" must be request , portlet_session , application_session or portlet_context .
If the "scope" is not set, and this processor is mapped to a form, then the
form element's scope, if specified, will be used. Otherwise, portlet_session scope is
assumed.
"attributes" is a comma separated list of attribute names. If this is ommitted
attribute names are assumed to be the same names as the parameter names.
author: Padmanabh Dabke author: (c) 2005 Nabh Information Systems, Inc. All Rights Reserved. since: 0.9.1 |
Method Summary | |
public String | process(ActionRequest request, ActionResponse response, ActionConfig actionConfig) Processes the request's parameters and sets them as attributes to the
specified scope. |
process | public String process(ActionRequest request, ActionResponse response, ActionConfig actionConfig) throws PortletException, IOException(Code) | | Processes the request's parameters and sets them as attributes to the
specified scope. success is always returned.
Parameters: request - Parameters: response - Parameters: actionConfig - success throws: PortletException - throws: IOException - |
|
|