In order to support low versions of WAP browser: some experiences written by WML files as follows:
1. Make the WML file support WML 1.1 version, not using the WML1.2 or above and the contents of WML 1.1 in WML 1.1 in WML 1.1 can be viewed in the following URL: http://www.phone.com/dtd / Wml11.dtd declare head:
2. Use of the simulator. Because OpenWave SDK6.22 and Opera's two browsers have better fault tolerance, you can use it when you are using, you can use Up.Simulator, which is low, it only supports WML1.1, you can check Do not follow the WML1.1. 3. The problem starting with the WML file:
XML Version = "1.0"?> < % @ Page ContentType = "Text / VND.Wap.wml; Charset = UTF-8"%> @ page import ..... XML Version = "1.0"?> Be sure to put it in the most upstairs of the entire WML file
The following is an example, where <% @ page import = "java.sql. *"%> Is purely for example, the program is not used in the program:
Where
head> Description page does not cache We use JSP to prevent cache when developing web in JSP Writing: <% / / Prevent IE Cache from Response.setHeader ("Pragma", "No-Cache"); Response.setHeader ("Cache-Control", "No-cache"); Response.SetDateHeader ("Expires", 0 );%> ------------------------------------------------------------------------------------------- ------ WML page content is as follows: XML Version = "1.0"?> <% @ Page ContentType =" text / vnd.wap.wml; charset = UTF-8 "%> <% @ page import =" java.sql. * "%> <% @Page import = "com.vansl.db. *"%># City chase girl # p>
all corners in the city, a staggered emotional dark stream is surging ... Night coming, 5 types of beautiful girl sexy appearance! 5 kinds of career choices and chasing women's actions determine the first handsome guy, you are still going! It's a man, the real console has just begun ...
p> card> wml> 4.jsp In Redirect Sometimes the test is not passed, it can be changed to the ONTIMER in WML. The detailed format is as follows, where timer value = "1" description