First, you need to configure a Web server
When designing a WAP Web page, whether you are using a WAP development tool UP.SDK or Nokia wap Tookit or Ericsson Wapide, you must make Web server settings, So here are a few common Web server settings described below: (here is the Tomcat4.0, the Apache Web server. Set the method as follows:)
Environment: Apache Web Server on NT or solaries or LINUX or other UNIX
1 Whether it is Windows or Unix or Linux, is to modify the Apache installation directory under the Conf/mime.types files
2 Add the following content to the document:
TEXT/VND.WAP.WML. WML (General plus this one will be able to run the general WAP page)
Image/vnd.wap.wbmp. wbmp
APPLICATION/VND.WAP.WMLC. WMLC
Text/vnd.wap.wmls. wmls
APPLICATION/VND.WAP.WMLSC. WMLSC
3) disk
4 Restart the Apache WEB SERVER.
Second Simple WAP page square.wml (square table) program
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN"
"http://www.wapforum.org/DTD/wml_1.1.xml";>
<%@ page contentType="text/vnd.wap.wml" %>
<wml>
<card id="card1" title="Math">
<p>平方表:</p>
<p> <% {int i;%>
<%for(i=1; i<=9; i++){ %> <%=i%>x<%=i%>=<%=i+i %><br/> <% }%>
</p>
<do type="prev" name="Previous" label="Previous">
<prev/>
</do>
</card>
</wml>
Third, browsing the WAP page garbled problem
Use analog mobile phone browsing WAP Web page, Chinese characters display will appear garbled or compile error, I generally do with their own a VB small program converted to Unicode code first. It is said that you can set the MIME table in the Web server by adding "; Charset=charset_name" after text/vnd.wap.wml, such as GB2312 kanji: text/vnd.wap.wml;charset= gb2312 to solve.