Dreamweaver

Define a JavaBean for a JSP page

  1. Select Window > Bindings to display the Bindings panel.
  2. Click the Plus (+) button, and select JavaBean from the pop‑up menu.
  3. In the JavaBean dialog box, enter the bean’s name.
  4. Select the bean’s scope.
  5. Select the bean’s class. To list the classes in a ZIP or JAR file, click Browse and select the file.

    The class is expressed in the following format:

    packagename.classname
  6. To assign a default value to one of the JavaBean’s properties, select the property from the list, and enter a value in the Default Value box below the list. To set the property’s default value to a dynamic value, click the lightning bolt icon beside the Default Value box.
  7. Click OK. The newly defined JavaBean appears in the Bindings panel.