Java Reference
In-Depth Information
L ISTING 24.2
WMLExample.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=”welcome” title=”Servlets Book”>
<p>
Welcome to the WML example! Select from one of these tests:<br/><br/>
<a href=”#setvar”>Setvar Test</a><br/>
<a href=”#input”>Input Test</a><br/>
<a href=”#select”>List Test</a><br/>
<a href=”#previous”>Prev Test</a><br/>
<a href=”#timer”>Timer Test</a><br/>
</p>
</card>
<card id=”setvar” title=”Setvar Test”>
<onevent type=”onenterforward”>
<refresh>
<setvar name=”output” value=”WAP Is Cool!”/>
</refresh>
</onevent>
<p>
$output
</p>
</card>
<card id=”input” title=”Input Test”>
<p>
Enter text here:
<input name=”inputBox”/>
</p>
<do type=”accept”>
<go href=”#input_output”/>
</do>
</card>
<card id=”select” title=”Select Test”>
<p>
Select an option:
<select name=”selectList”>
<option value=”Option1”>Option1</option>
<option value=”Option2”>Option2</option>
<option value=”Option3”>Option3</option>
<option value=”Option4”>Option4</option>
<option value=”Option5”>Option5</option>
</select>
Search WWH ::




Custom Search