一个wml的实例(原创)
main point:deck下card,card每次显示一个
code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<%@ page language="java" pageEncoding="UTF-8"
contentType="text/vnd.wap.wml;charset=UTF-8"%>
<jsp:directive.page import="cn.yicha.ad.util.CovertURL;" />
<% String u=request.getParameter("username");
String p=request.getParameter("password");
String s=request.getParameter("status");
%>
<card id="submit" title="修改URL转发配置">
<p align="left">
<%=CovertURL.setOn(u,p,s)%><br/>
<% String ss=CovertURL.getOn()==true?"开启":"关闭"; %>
URL转发当前状态:<%=ss%><br/>
用户名:<input type="text" name="username"/><br/>
密码:<input type="text" name="password"/><br/>
状态:<select name="status">
<option value="0">关闭</option>
<option value="1">开启</option>
</select><br/>
<anchor>确定
<go method="post" href="./open.jsp">
<postfield name="username" value="$(username)"></postfield>
<postfield name="password" value="$(password)"></postfield>
<postfield name="status" value="$(status)"></postfield>
</go>
</anchor>
</p>
</card>
</wml>