当前位置: 代码迷 >> JavaScript >> JSP+WAP2.0轨范
  详细解决方案

JSP+WAP2.0轨范

热度:576   发布时间:2012-09-05 15:19:34.0
JSP+WAP2.0规范

XHTML MP文档结构

<?xml version="1.0"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title>Hello world</title>
</head>
<body>
	<p>Hello world. Welcome to iteye.com.</p>
</body>
</html> 

?JSP+WAP2.0文档结构

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<%@ page language="java" pageEncoding="UTF-8" contentType="application/vnd.wap.xhtml+xml"%>
<html xmlns="http://www.w3.org/1999/xhtml">

 
<%
	//可加JAVA代码
 %>
	<head>
		<title>新手任务-购买商品</title>
		<link href="/css/main.css" rel="stylesheet" type="text/css"/>
		<style type="text/css">
			.noviceDiv{
				line-height:21px;background:#DDEEF6;padding:5px 10px 5px 15px;border-top:1px solid #9FD1F3;
			}
		</style>
	</head>
	<body>
		<div class="noviceDiv">
	 		<strong>新手任务</strong>
	 	</div>
	 	<h5>当前页面 > 商店</h5>
		<p>
			${message }
		</p>
		<p>
			<a href="<%=request.getContextPath()%>/treeController.html?flag=plantTree&novice=yes">赶快将买回来的树苗种到山上去吧!</a>
		</p>
	</body>
</html>
?