| java.lang.Object com.nabhinc.portlet.mvcportlet.core.BaseRequestProcessor com.nabhinc.portlet.mvcportlet.renderprocessor.SelectField
SelectField | public class SelectField extends BaseRequestProcessor implements RenderProcessor(Code) | | Retrieves a database field and sets it as String to the request attribute
"mvcportlet.field".
- sql - SQL used to update or insert a record.
Optional configuration parameters
- params - Comma separated list of names of SQL parameters to be
inserted. In general, these are the request parameter names. The
following specialtokens are used to insert other values:
- $userName - Current user name returned by request.getRemoteUser()
- $currentDate - Today's date
- $currentTimestamp - Current time
- param-types - Comma separated list of SQL parameter types. This
parameter must be specified if "params" are specified. Possible parameter
types are: VARCHAR, INTEGER, DECIMAL, BOOLEAN, SMALLINT, DATE,
TIME, TIMESTAMP, FLOAT, DOUBLE, ARRAY, BIGINT, BINARY, BIT,
BLOB, CHAR, CLOB, LONGVARBINARY, LONGVARCHAR, JAVA_OBJECT
author: Padmanabh Dabke author: (c) 2004 Nabh Information Systems, Inc. All Rights Reserved. |
Method Summary | |
public void | init(Element config, ControllerPortletConfig controllerConfig) | public String | process(RenderRequest request, RenderResponse response, RenderConfig config) Retrieves database records and sets request attribute
"mvcportlet.records" to a vector of object arrayes corresponding to
the records. |
process | public String process(RenderRequest request, RenderResponse response, RenderConfig config) throws PortletException, IOException(Code) | | Retrieves database records and sets request attribute
"mvcportlet.records" to a vector of object arrayes corresponding to
the records.
|
|
|