dsp:oparam (open parameter) takes the values supplied to it in a JSP and passes them to the enclosing dsp:droplet tag. Each servlet bean maintains a discrete set of open parameters for which the servlet bean can set, service, and deliver as output to a JSP.

See the HowJSPsHandleServletBeans section in the CreatingandUsingATGServletBeans chapter of the ATG Programming Guide.

Attributes

The open parameter tag provides the name attribute, which should be set to the particular open parameter you want to render. Because the enclosing servlet bean determines which open parameters are available, you’ll find the list of acceptable open parameters in the section name for the servlet bean you are using. See Appendix B, ATG Servlet Beans.

Example

<dsp:droplet name="Switch">
  <dsp:param name="value" value="<%=elem.toUpperCase()%>"

  <dsp:oparam name="HIKING">
    <p>Arrive at the Prom between 7:30 pm and 8:30 pm.
  </dsp:oparam>
  <dsp:oparam name="default">
    <p>Buy your prom tickets now. Time is running out!
  </dsp:oparam>
</dsp:droplet>

This instance of the Switch servlet bean uses two open parameters. The Switch servlet bean evaluates the input parameter (the value of value), compares the result against the two open parameters, and for the open parameter that matches the input parameter output, renders the text beneath it. This way, students receive the appropriate reminder, depending on whether they’ve purchased prom tickets. The open parameters used in this example are a subset of those available to the Switch bean.

 
loading table of contents...