BeanProperty
instead.
BeanProperty is identical in functionality to BeanPropertyServlet, but
more correctly named, and provides a BeanInfo class for the DCC.public class BeanPropertyServlet extends DynamoServlet
Examples:
To set the property value, specify the new value using the propertyValue parameter, as in this example:
<droplet bean="/atg/dynamo/droplet/BeanPropertyServlet"> <param name="bean" value="param:myBean"> <param name="propertyName" value="color"> <param name="propertyValue" value="red"> </droplet>When setting property values the oparam need not be used, since there's no need to render output within the droplet's context.
To get the property value, leave the propertyValue parameter unset. The parameter will then take on the current value within the output oparam, as in this example:
<droplet bean="/atg/dynamo/droplet/BeanPropertyServlet"> <param name="bean" value="param:myBean"> <param name="propertyName" value="color"> <oparam name="output"> The bean's color is <valueof param="propertyValue">unset</valueof>. </oparam> </droplet>Dotted subproperty expressions of the form "a.b.c" are permitted when getting a property value, though not when setting one. When getting a value using subproperty expressions, if any intermediate property is null then propertyValue will also be null, as is the case when using
DynamicBeans
.
DynamicBeans
,
BeanProperty
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
BEAN
Deprecated.
|
protected static java.lang.String |
BEANRESOURCES
Deprecated.
|
static java.lang.String |
CLASS_VERSION
Deprecated.
Class version string
|
static java.lang.String |
OUTPUT
Deprecated.
|
static java.lang.String |
PROPERTY
Deprecated.
|
protected static java.util.ResourceBundle |
sResourceBundle
Deprecated.
|
static java.lang.String |
VALUE
Deprecated.
|
mAllowCleanupRequest, mParameters
SERVLET_INFO_KEY
SERVICE_INFO_KEY
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
BeanPropertyServlet()
Deprecated.
Constructs an instanceof BeanPropertyServlet
|
Modifier and Type | Method and Description |
---|---|
void |
service(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Deprecated.
Service the servlets request.
|
protected void |
serviceGet(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
java.lang.Object pBean,
java.lang.String pProperty,
java.lang.Object pValue)
Deprecated.
Handles a request to get a property
|
protected void |
serviceSet(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse,
java.lang.Object pBean,
java.lang.String pProperty,
java.lang.Object pValue)
Deprecated.
handles a request to set a property
|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, init, service, service, setParameter
destroy, getServletConfig, getServletInfo, setServletInfo
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static java.lang.String CLASS_VERSION
public static final java.lang.String BEAN
public static final java.lang.String PROPERTY
public static final java.lang.String VALUE
public static final java.lang.String OUTPUT
protected static final java.lang.String BEANRESOURCES
protected static java.util.ResourceBundle sResourceBundle
public BeanPropertyServlet()
public void service(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
service
in class DynamoServlet
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected void serviceGet(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, java.lang.Object pBean, java.lang.String pProperty, java.lang.Object pValue) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsepBean
- the bean to operate onpProperty
- the property to getpValue
- the value of this propertyjavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected void serviceSet(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse, java.lang.Object pBean, java.lang.String pProperty, java.lang.Object pValue) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsepBean
- the bean to operate onpProperty
- the property to setpValue
- the value to set this property tojavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet io