Developing with SAP NetWeaver Developer Studio | Example
1 | Example 2 | Example
3 | Smart
Sync Tutorial
Developing simple example applications
In the Getting Started section, several simple runnable programs are presented
and discussed. This should allow you to
- familiarize youself with MI's deployment concept by uploading them to the
Web Console and
deploy them to your mobile device
- familarize youself with the MDK functionality in SAP
NetWeaver Developer Studio by importing
them as a project and exporting
them again to your mobile device.
- get to know the basic structure of a simple JSP application for MI
- get a first grip on the MI Client API
- take the examples as a starting point for own developments by thoroughly
debugging through them, enhancing them and adding new code fragments
The first three programs are targeted at developers with little experience
in MI. The Smart Sync Tutorial is more focused at experienced MI developers
who now want to make first steps with Smart
Synchronisation.
The first three programs use the MI Client API to display information
about the MI Client configuration.
All programs are very similar in structure and use a servlet that loads a bean
with data and calls a JSP that displays this data. They are all packaged into
.war files that can either be uploaded to the Web Console and deployed from
there or imported into SAP NetWeaver Developer Studio for examining and testing
it further there. Alternatively, you can also view their code directly from
within the documentation by clicking on the corresponding links in the example
descriptions.
The following the programs are presented:
- In the 1st example program, a basic
servlet reads data from the MI Client configuration into a bean and calls
a JSP to display the information about the MI client installation.
This example demonstrates how to use the AbstractMEHttpServlet package, put
a bean in the session context and call a JSP.
- The 2nd example program extends
the first by adding an initial JSP with an input field. The user input is
read and displayed together with the configuration information in a second
JSP. Technically, the program is realized as a servlet with event handling,
two JSP and a bean.
Being an extension of the first example, program demonstrates how to handle
events, read data from an input fields in JSP and call another JSP when the
event is processed.
- The 3rd example program extends
the second by adding multi-language support to it through the usage of resource
bundles.
- The Smart Sync Tutorial
is a step-by-step guide to create a simple Smart Sync application that
downloads master data on country information from the WebAS.