
DREAMWEAVER CS3
User Guide
673
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.
Define a JavaBean collection for a JSP page
1 Select Window > Bindings to display the Bindings panel.
2 Click the Plus (+) button and select JavaBean Collection from the pop-up menu.
3 In the JavaBean Collection dialog box, select the collection’s class from the Collection Class pop-up menu.
The class is expressed in the following format:
packagename.classname
To list the classes in a ZIP or JAR file, click Browse and select the file.
4 Select one of the collection’s indexed properties from the Indexed Properties pop-up menu.
5 (Optional) Change the default name that appears in the Item Class box.
6 Select the bean’s scope from the Scope pop-up menu.
7 Click OK. The newly defined JavaBean collection appears in the Bindings panel.
Commentaires sur ces manuels