Entering content frame

Object documentation Using JSP Tags and Components Similar to Beans Locate the document in its SAP Library structure

Overview

Mobile HTMLBusiness for Java offers a range of reusable interface elements (Web controls) that you can use when programming user interfaces. It makes sense to use these Web controls if you want to develop Java applications for different browser flavors (including micro-browsers on mobile devices).

By using Web controls you can substantially reduce the amount of code you need to write (to mention just one benefit of these objects). This does not only improve the performance of mobile devices. In some cases, it makes it possible to run them at all. This is because the amount of memory available to applications is of particular importance in this area. For example, many WAP-enabled devices, like the Nokia 7110 can only handle Web pages that are a maximum of 1.36 Mb in size.

Example

The Mobile HTMLBusiness for Java extension enables users to run Java applications developed for the PC on mobile devices. When developing these applications, you can use the normal tag library for developing Java Server Pages (JSPs) and the Class Library for developing servlets.

The following table shows you how to use the textView Web control in different Web components (servlets, JSPs):

Web component

Java code

Servlet

TextView t = new TextView ();

t.setText ("Hello World!);

JSP

<hbj: textView

id="Answer_Required_ZIP"
required="TRUE"
text="ZIP Code"
design="emphasized">

</hbj:textView>

 

 

Leaving content frame