Entering content frame

Function documentation isTitleSupported Method Locate the document in its SAP Library structure

Use

The isTitleSupported method of the ClientInfo interface specifies whether or not the title attribute of the WML tag <card> causes the title to appear at the top of the screen.

On some devices, for example Nokia devices, specifying a title in the WML tag <card> displays a header in the Web application title bar.

However, an Openwave browser does not support this function on every device. In this case, no header appears in the device’s user interface. To make the title appear on such devices, it must be included in the body text of the document.

Example
The following JSP code shows how to use the isTitleSupported method:

<%@ page import="com.sap.mobile.clientinfo.*" %>
<%@ page import="WeatherData" %>
<%
int prio;
ClientInfo clientInfo = ClientInfoFactory.newInstance().newClientInfo();
clientInfo.load(request);
%>
...
<%response.setContentType("text/vnd.wap.wml");%>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<card id="karte1" title="Table Example">
<% if (clientInfo.isTitleSupported() == false)
{ %>
<p align="center">
<% if (clientInfo.isEmphasizedSupported() == true) { %>
<em>Table Example</em>
<% } else { %>
Table Example
<% } %>
</p>
<% } %>
...
</card>
</wml>
<% } %>

ClientInfo Interface

Leaving content frame