Invokes a servlet bean.
<dsp:droplet[var-spec]name="servlet-bean" > ... </dsp:droplet>
Attributes
name
Sets the Nucleus path and servlet bean to invoke.
var-spec
Defines an EL variable or scripting variable with one of these attributes:
Attribute | Description |
|---|---|
| Names an EL-accessible Map variable, which holds a servlet bean’s parameters and parameter values. When you use |
| Names a scripting variable that scriptlets and expressions can access at runtime. |
Usage Notes
The dsp:droplet tag lets you invoke a servlet bean from a JSP page. It encapsulates programming logic in a server-side JavaBean and makes that logic accessible to the JSP page that calls it. Tag output is held by its parameters, which can be referenced by nested tags.
Example
<dsp:droplet var="fe" name="/atg/dynamo/droplet/ForEach">
<dsp:param bean="/samples/Student_01.subjects" name="array"/>
<dsp:oparam name="outputStart">
<p>The student is registered for these courses:
</dsp:oparam>
<dsp:oparam name="output">
<li><c:out value="${fe.element}"/>
</dsp:oparam>
</dsp:droplet>In this example, the dsp:droplet tag calls the ForEach servlet bean and creates a Map variable called fe that saves each parameter and parameter value used on this page. The ForEach servlet bean iterates over the Student_01.subjects array. Beneath the specified message text, the c:out tag displays each array element.

