|
手机开发,尤其是WAP页面开发总少不了要写JSP页面。
虽然,Eclipse提供了很多模板页面,但并没有提供WML相应的模板。
这里整理两种WML格式:
1.由www.wapforum.org定义的应用最为广泛的WML1.1和WML1.2
WML1.1
<?xml version="1.0" encoding="UTF-8" ?><%@ page language="java" contentType="text/vnd.wap.wml; charset=UTF-8"pageEncoding="UTF-8"%><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml"><wml><head><meta http-equiv="Content-Type" content="text/vnd.wap.wml" /></head><card title="Insert title here"><p>HELLO!</p></card></wml>
WML1.2
<?xml version="1.0" encoding="UTF-8" ?><%@ page language="java" contentType="text/vnd.wap.wml; charset=UTF-8" pageEncoding="UTF-8"%><!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.2//EN" "http://www.wapforum.org/DTD/wml_1.2.xml"><wml><head><meta http-equiv="Content-Type" content="text/vnd.wap.wml; charset=UTF-8"></head><card title="Insert title here"><p>HELLO!</p></card></wml>
2.由www.openmobilealliance.org定义的WML标准
mobile 1.0
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile Profile 1.0//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile10.dtd">
mobile 1.1
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">
mobile 1.2
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.2//EN" "http://www.openmobilealliance.org/tech/DTD/xhtml-mobile12.dtd">
知识补充:
<div class="quote_title">引用 |
|