BEA WebLogic User Manual page 182

Mobility server
Hide thumbs Also See for WebLogic:
Table of Contents

Advertisement

Part VIII Appendixes
mm-layout, mm:layout
Description
Used to specify which layout files should be applied to a request page. Layout files are essentially
XHTML or JSP files that contain a description of how output content is best arranged for a
specific device or for certain classes of devices. This tag is placed inside the <head> element. It
is an empty tag, so it requires a slash (/) before the final angle bracket (>).
Attributes
where="..."
The where attribute enables the author to specify content selection conditions for devices.
Notes
where="IsFullBrowser" is not allowed with this tag
The "where" clause quoted string must not contain line breaks
Conditions are constructed by specifying device attribute names and allowable values,
using comparison operators from the Python programming language. Multiple conditions can
be combined to make complex expressions by using the logical "and", "or" and "not"
operators from Python.
WebLogic Mobility Server also supports use of the Python .endswith( ), .startswith( )
and .find( ) methods for partial matching.
Restrictions
At least one condition must be specified
Attribute names must be valid as taken from the Device Repository
All String attribute values must be wrapped in single quotes
src="url"
A URL that points WebLogic Mobility Server to the layout file.
Example
<!-- The following example targets a distinct type of device with a specific
layout. -->
<?xml version='1.0'?>
<!DOCTYPE html PUBLIC "-//MOBILEAWARE//DTD MMXHTML 1.2//EN"
"http://www.mobileaware.com/DTD/mmxhtml_1.2.dtd">
<html>
<head>
<title>Example Heading</title>
<mm-layout where="IsPortraitPDA" src="layout_1.htm" />
</head>
<body>
<mm-group id="text1">
<p> When this page is delivered to a portrait PDA, it will be formatted
according to the style set out in the file layout_1.htm.</p>
</mm-group>
</body>
</html>
178 - BEA WebLogic Mobility Server User Guide

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the WebLogic and is the answer not in the manual?

This manual is also suitable for:

Weblogic mobility server

Table of Contents