Invokes a servlet bean.

<dsp:droplet [var-spec] name="servlet-bean" >



Sets the Nucleus path and servlet bean to invoke.


Defines an EL variable or scripting variable with one of these attributes:




Names an EL-accessible Map variable, which holds a servlet bean’s parameters and parameter values. When you use var, you can set its scope attribute to page, request, session, or application. The default scope is page. For more information, see EL Variable Scopes.


Names a scripting variable that scriptlets and expressions can access at runtime.

param name

This is a dynamic attribute. Use the name of a param as the attribute name and the value of the param as the attribute value. For example, the following two dsp:droplet tags are equivalent.

<dsp:droplet name="ForEach">
  <dsp:param name="array" value="${myList}"/>

Include the name of the param as an attribute of the dsp:droplet tag.

<dsp:droplet name="ForEach" array="${myList}">

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.


<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 name="output">
    <li><c:out value="${fe.element}"/>

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.