36 IBM WebSphere Everyplace Access V5, Volume II: Application Development
6. The doView method is executed.
7. The view.jsp is again invoked to render the final screen. The JSP accesses
the bean to display the value that the user entered.
2.2 Setup the ActionEvent portlet framework
In this section, you will create a portlet application that supports action events.
The portlet application will be published and executed in the test environment
and viewed on the Palm Simulator and on the Nokia simulator.
2.2.1 Create the framework with the portlet application wizard
1. Before you start this lab, make sure that the test environment is stopped. Click
the Server tab in the tasks area to verify this. Also make sure all editors and
browsers have been closed
2. In WebSphere Studio Site Developer, click File->New->Other.
3. Select Portlet Development in the left column and Portlet Application
Project in the right column. The click Next to continue.
4. Name the project ActionEvent. Select the option Create basic portlet. Make
sure that Configure advanced options is checked. Click Next to continue.
Chapter 2. Portlet action event handling 37
Figure 2-3 Naming the project
5. Accept the default settings on the J2EE settings window. Click Next to
continue.
6. Click Next to accept the default settings on the Portlet settings window.
7. On the Event Handling window, check the options to Add action listener and
to Add form sample.
38 IBM WebSphere Everyplace Access V5, Volume II: Application Development
Figure 2-4 Adding support for action events
8. Accept the default values on the Single Sign-On window. Click Next to
continue.
9. On the Miscellaneous window, select Add PDA markup support and Add
wml markup support. Click Finish to generate the framework for your
project.
Chapter 2. Portlet action event handling 39
Figure 2-5 Adding support for multiple markup languages
2.2.2 Configure the test environment to support this project
Follow these steps to properly configure your project for the test environment and
start working on your project:
1. In the Project Navigator panel, expand the DefaultEAR project and
double-click application.xml. This file is the application deployment
descriptor and will open in its own editor.
40 IBM WebSphere Everyplace Access V5, Volume II: Application Development
Figure 2-6 Opening the application deployment descriptor
2. Once the application deployment descriptor opens, select the Module button
along the bottom of the editor.

Get IBM WebSphere Everyplace Access V5 Handbook for Developers and Administrators Volume II: Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.