亚洲人成人无码网www电影首页,久久久久国产亚洲AV麻豆,亚洲精品无码av中文字幕http://www.tkk7.com/youngturk/category/53219.htmlThe world is a fine place , and worth fighting for it.zh-cnMon, 14 Jan 2013 01:28:00 GMTMon, 14 Jan 2013 01:28:00 GMT60java開發wap網頁http://www.tkk7.com/youngturk/archive/2013/01/14/394173.htmlyoungturkyoungturkMon, 14 Jan 2013 01:23:00 GMThttp://www.tkk7.com/youngturk/archive/2013/01/14/394173.htmlhttp://www.tkk7.com/youngturk/comments/394173.htmlhttp://www.tkk7.com/youngturk/archive/2013/01/14/394173.html#Feedback0http://www.tkk7.com/youngturk/comments/commentRss/394173.htmlhttp://www.tkk7.com/youngturk/services/trackbacks/394173.html直接使用eclipse開發就可以,wap沒有什么特別的,和開發普通的java程序一樣的,只是展示曾需要定義一下wap的標簽就可以。 <?xml version="1.0" encoding="UTF-8" ?> <%@ page language="java" contentType="text/vnd.wap.wml; charset=UTF-8" pageEncoding="UTF-8"%> <%@ taglib prefix="s" uri="/struts-tags" %> <!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN" "http://www.wapforum.org/DTD/xhtml-mobile10.dtd"> <% // 自動解析PC web請求還是mobilephone web請求
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"); %>