当前位置: 首页 > 工具软件 > xhtml-engine > 使用案例 >

xhtml.html

宗政法
2023-12-01
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%
	String acceptHeader = request.getHeader("accept");
	if (acceptHeader.indexOf("application/vnd.wap.xhtml+xml") != -1)
		response.setContentType("application/vnd.wap.xhtml+xml");
	else if (acceptHeader.indexOf("application/xhtml+xml") != -1)
		response.setContentType("application/xhtml+xml");
	else
		response.setContentType("text/html");
%>
<?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">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>XHTML MP Tutorial</title>
</head>

<body>
<p>Hello world. Welcome to our XHTML MP tutorial.</p>
</body>
</html>


 类似资料:

相关阅读

相关文章

相关问答