Some design experiences of the WML page

xiaoxiao2021-03-06  87

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:

< % @ Page ContentType = "Text / VND.Wap.wml; Charset = UTF-8"%> 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 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: <% @ Page ContentType =" text / vnd.wap.wml; charset = UTF-8 "%> <% @ page import =" java.sql. * "%> <% @Page import = "com.vansl.db. *"%>

# City chase girl #

ss 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 ... 1 Enter the game 2 game BBS 3 Game Description
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

5. An example of page example to send data to WAP <%@Page Language = "Java" ContentType = Text / VND.Wap.Wml; Charset = GBK "%> <% @ Page Import = "MyBean. *"%> Query field:

转载请注明原文地址:https://www.9cbs.com/read-106712.html

New Post(0)