http://www.bfor.cn/xiaoxiao/archive/134083.aspx wap 测试
手机网站的开发和一般网站的开发基本相同,不同的是手机网站需要手机浏览器。开发时可以使用模似手机浏览器:
在windows下安装winwap-win32 ,winwap-wmstd
wap.jsp:
<%@ page language="java" pageEncoding="UTF-8" contentType="text/vnd.wap.wml;charset=UTF-8"%>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<title>My JSP 'wap.jsp' starting page</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
</head>
<card>
<p>
Request :<br/>
<a href="process.do">Process</a>
</p>
</card>
<card>
<p>
show request parameter:<br/>
${attr } <!-- 在servlet 中:req.setAttribute("attr", "HttpServletRequest");-->
</p>
</card>
</wml>
上面的是jsp+wml
<do type="accept" label="submit">
<go href="wapTest" method="post"> //可以提交参数
<postfield name="company" value="$type"/>
</go>
</do>
http://dotnet.chinaitlab.com/DotNetFramework/755818.html
<!--StartFragment --> <!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">