|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.nucleus.TimedOperationService atg.nucleus.servlet.ServletService atg.nucleus.servlet.HttpServletService atg.servlet.DynamoServlet atg.droplet.BeanPropertyServlet
BeanProperty
instead.
BeanProperty is identical in functionality to BeanPropertyServlet, but
more correctly named, and provides a BeanInfo class for the DCC.
public class BeanPropertyServlet
This servlet gets or sets a property in a bean. The bean is defined by the bean parameter. The property to get or set is defined by the propertyName parameter. The value may be set or read using the propertyValue parameter. In either case, the droplet renders an oparam named output.
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
Field Summary | |
---|---|
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. |
Fields inherited from class atg.servlet.DynamoServlet |
---|
mAllowCleanupRequest, mParameters |
Fields inherited from class atg.nucleus.servlet.ServletService |
---|
SERVLET_INFO_KEY |
Fields inherited from class atg.nucleus.GenericService |
---|
SERVICE_INFO_KEY |
Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
---|
DEFAULT_LOG_TRACE_STATUS |
Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
Constructor Summary | |
---|---|
BeanPropertyServlet()
Deprecated. Constructs an instanceof BeanPropertyServlet |
Method Summary | |
---|---|
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 |
Methods inherited from class atg.servlet.DynamoServlet |
---|
doDelete, doGet, doPost, doPut, getParameter, getParameters, getServletContext, service, service, setParameter |
Methods inherited from class atg.nucleus.servlet.ServletService |
---|
destroy, getServletConfig, getServletInfo, init, setServletInfo |
Methods inherited from class atg.nucleus.TimedOperationService |
---|
getAverageRequestHandlingTime, getHandledRequestCount, getRequestStartTime, getTotalRequestHandlingTime, isKeepingStatistics, notifyHandledRequest, resetStatistics, setKeepingStatistics |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public BeanPropertyServlet()
Method Detail |
---|
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 response
javax.servlet.ServletException
- if there was an error while executing the code
java.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 property
javax.servlet.ServletException
- if there was an error while executing the code
java.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 to
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet io
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |