用JSP/ASP创建WAP应用
用JSP/ASP创建WAP应用,用JSP/ASP创建WAP应用
下面是一个用JSP输出动态WML内容的例子:
<?xml version="1.0"?
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml"
<% response.setContentType("text/vnd.wap.wml"); %
<wml
<card id="start"
<do type="accept"
<go href="index.jsp#test"/
</do
<p用JSP输出动态WML:<br/
选择Accept继续!<br/
</p
</card
<card id="test"
<do type="prev"
<prev/
</do
<%
out.println("<p");
out.println("你好,测试成功!<br/");
out.println("</p");
%
</card
</wml