The DynamicallyLoadedClasses sample demonstrates dynamic class loading using the Class.forName() method. The sample contains one web application that displays a web form enabling the user to enter a text string and to select a greeting type from a dropdown list. The application displays a text string that concatenates the greeting type with the text string entered by the user.
Running the DynamicallyLoadedClasses sample consists of using the IDE to open the DynamicallyLoadedClasses project, starting the application, entering text in the web page Name field, and clicking the Greet button to display the greeting page.
Before performing the following procedure, the Java Card 3 Development Kit, Connected Editon must be downloaded and installed on your development system.
The DynamicallyLoadedClasses project is located under the JC_CONNECTED_HOME\samples\web folder.
Note - Refer to the Java Card 3 Platform Development Kit User’s Guide for additional details including screen captures.
The IDE compiles, builds, and runs the sample. When the sample runs the IDE launches the default browser and displays the Dynamically Loaded Classes page.
The browser displays text that consists of the greeting type and the name entered in the name field.