Include the atg-rest-return-form-handler-properties control parameter with a Legacy REST Web Services request to return the property values of the form handler component. The Legacy 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 Legacy 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 Legacy REST Web Services request, the class element in the atgResponse will contain the following value: class atg.rest.processor.BeanProcessor$FormHandlerPropertiesAndExceptions. See Returning Legacy REST Form Handler Exceptions.


Copyright © 1997, 2013 Oracle and/or its affiliates. All rights reserved. Legal Notices