How does a developer preserve request scoped objects on redirects?

How does a developer preserve request scoped objects on redirects?

How does a developer preserve request scoped objects on redirects?

A.
by adding a_request id parameter to the form as a hidden variable

B.
by setting the synchronized attribute to the form tag so the request doesn’t close

C.
by setting setAllowChangeHeadersDuringRedirect to true on DynamicHTTPServletRequest

D.
by calling the SendLocalRedirect() on DynamicHTTPServletRequest object

E.
by setting setRequestto current request on the DynamicHTTPServletRequest Object

Explanation:
Preserving request scoped objects on redirects
If a request results in a redirect to a local page through the method
HttpServletResponse.sendLocalRedirect(), the ATG platform treats the redirect request as part of
the original request, and maintains any request-scoped objects associated with that request. To
implement this, the ATG platform adds an additional query parameter named _requestid to the
redirected URL.
ATG Programming Guide



Leave a Reply 0

Your email address will not be published. Required fields are marked *