Prerequisites
Before you transfer your JSP application to a device, complete the following
tasks:
Procedure
To transfer a JSP application to a Windows CE device:
- Copy the database used by the application to the device, if it doesn't
already exist on the device. Make sure to put the database in the directory
that the application expects it to be in. That is, the directory specified
by the URL that the application connects to.
- Copy the application files to the directory specified for the JspPath
property in MiniHttpConfig.properties for the
device. If the application is in a subdirectory under JspPath on the workstation,
create the same subdirectory structure under JspPath on the device. Use the
following rules when copying the application files to the device:
ǥ 5.
File on the workstation
| File to copy to the device
|
<page>.jsp
| <page>_jsp_.class
|
<webapp>\web.xml
| <webapp>\<webapp>_config_.class
|
Notes:
For example, to copy the Visiting Nurse sample JSP application
to the device:
- Copy the Visiting Nurse sample database to the device:
- Create the following directory structure on the device: \sample\data. This is the directory specified by the URL that the application connects
to.
- Copy the contents of the <DB2Everyplace>\SDK\JSP\sample\data directory on the workstation to \sample\data on the device.
- Copy the application files to the device:
- Create the following directory structure on the device: \sample\jsp. This is the directory specified for JspPath in the default MiniHttpConfig.properties file.
- Create the subdirectory \VisitingNurse under \sample\jsp.
- Copy the following files to \sample\jsp\VisitingNurse:
<DB2Everyplace>\SDK\JSP\sample\jsp\VisitingNurse\_schedule_jsp_.class
<DB2Everyplace>\SDK\JSP\sample\jsp\VisitingNurse\_contact_jsp_.class
<DB2Everyplace>\SDK\JSP\sample\jsp\VisitingNurse\_medrecord_jsp_.class
<DB2Everyplace>\SDK\JSP\sample\jsp\VisitingNurse\_person_jsp_.class
Related tasks
Related reference