What is the best way to display the contents of an open parameter in a Custom Droplet?

What is the best way to display the contents of an open parameter in a Custom Droplet?

What is the best way to display the contents of an open parameter in a Custom Droplet?

A.
Use the getParameter to get the open parameter and print it outinthe droplet.

B.
Use the request.render method to render the open parameter.

C.
Use the response.redirect method to redirect to the JSP fragementinthe open parameter

D.
Use the request.serviceParameter method to render the open parameter.

Explanation:
Although it is possible to pass open parameters to ATG servlet beans, those
parameters should not be read with the standard getParameter() method. In fact, it is unlikely that

your ATG servlet bean wants to see the actual value of an open parameter. In most situations, an
ATG servlet bean wants to output the value of an open parameter. To do this, use
the serviceParameter method of the request.
Example: request.serviceParameter (“storename”, request, response);
ATG Programming Guide, Displaying Open Parameters in ATG Servlet Beans



Leave a Reply 0

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