Copyright © 2001 Qusay H. Mahmoud
36
JSP for WAP
l
<?xml version…>
l
<!DOCTYPE…etc>
l
<%
response.setContentTyp("text/vnd.wap.wml")
l
%>
l
<wml> <card title="MobileDate"
l
Date and Time Service<br/>
l
Date is: <%= new java.util.Date() %>
l
</card>
l
</wml>
l
Or you can use the PAGE directive…