The reference code is as follows:
<? Xml version = "1.0" encoding = "UTF-8"?>
<% @ Page contentType = "text/vnd. wap. wml; charset = UTF-8" %>
<% @ Include file = "/common/taglibs. jsp" %>
<! DOCTYPE wml PUBLIC "-// WAPFORUM // dtd wml 1.1 //" http://www.wapforum.org/DTD/wml_1.1.xml ">
<Wml>
<Head>
<Meta http-equiv = "Cache-Control" content = "max-age = 0"/>
<Meta http-equiv = "Cache-Control" content = "no-cache"/>
</Head>
<Card id = "login" title = "User login">
<P >$ {errTip} </p>
<P> mobile phone number: <br/> <input type = "text" id = "j_username" name = "j_username"/> </p>
<P> password: <br/> <input type = "password" id = "j_password" name = "j_password"/> </p>
<P> <anchor title = "click to log on"> log on
<Go href = "wap-login! CheckLogin. jspx "method =" post "accept-charset =" UTF-8 ">
<Postfield name = "username" value = "$ (j_username)"/>
<Postfield name = "password" value = "$ (j_password)"/>
</Go>
</Anchor> </p>
<P> <anchor title = "click this link for computer access"> click this link for computer access to this page.
<Go href = "$ {ctx}/login. jspx? Type = 1 "method =" post "accept-charset =" UTF-8 ">
</Go>
</Anchor> </p>
</Card>
</Wml>
Note:
All mobile phones must be accessible normally.
1. Do not add html tags.
2. Do not add the title attribute to the head.
3. The <anchor> label must be added <p>. If some mobile phones are not added, an error will be resolved.
4. <? Xml version = "1.0" encoding = "UTF-8"?> It is better not to have spaces before
5. <% @ page contentType = "text/vnd. wap. wml; charset = UTF-8" %> there is a space before page
6. The & nbsp; uc browser does not parse
You can use the operabrowser to access wap. Right-click the source code to view the wap page format.
From youth and letters