Include the atg-rest-return-form-handler-properties
control parameter with a REST Web Services request to return the property values of the form handler component. The REST Web Services server will include the property values in a component
element in the HTTP response. Set the value of the control parameter to true
.
The following example shows the response to a REST Web Services request to invoke /atg/store/profile/RegistrationFormHandler/create
. The response includes a component
element that contains the property values of the RegistrationFormHandler
component.
<atgResponse> <class>class atg.rest.processor.BeanProcessor$FormHandlerProperties</class> <component> <absoluteName>/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-409/atg/store/profile/RegistrationFormHandler</absoluteName> <addCommerceItemInfos/> <addressIdValueMapKey>addressId</addressIdValueMapKey> [Additional property values omitted to save space] <valueMap>http://myserver:8080/rest/bean/atg/dynamo/servlet/pipeline/RequestScopeManager/RequestScope-409/atg/store/profile/RegistrationFormHandler/valueMap</valueMap> <verifyPasswordSuccessURL/> </component> <result>true</result> </atgResponse>
Note: if you choose to include both exceptions and form handler properties in a REST Web Services request, the class element in the atgResponse
will contain the following value: class atg.rest.processor.BeanProcessor$FormHandlerPropertiesAndExceptions
. See Returning Form Handler Exceptions.