wap全攻略,获取MM-DD hh:mm格式时间

footer.jsp
<%@ page language="java" pageEncoding="UTF-8"
	contentType="text/vnd.wap.wml; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<p><br />
<a href="">手机阅读</a> >> <a href="">直播</a> <a href="">直播间</a>:<a>直播间1</a>.<a>直播间1</a>.<a>直播间1</a>.<a>直播间1</a>
<a href="">手机阅读</a>--<a href="">个人空间</a>--<a href="">导航</a> <br />
当前时间:${NowTime} <small>Powered by Huawei</small></p>


package com.jin.wzujin.utils;

import java.util.Date;

import java.text.SimpleDateFormat;

public class DateForm {
	public static void main(String[] args) {

		Date nowTime = new Date();

		System.out.println(nowTime);

		SimpleDateFormat time = new SimpleDateFormat("MM-dd HH:mm");

		System.out.println(time.format(nowTime));

	}
}

head.jsp
<%@ page language="java" pageEncoding="UTF-8"  contentType="text/vnd.wap.wml; charset=UTF-8"%><?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<head>
<meta http-equiv="cache-control" content="max-age=180,private" />
</head>
<card id="ieach_wml" title="手机阅读直播间"></card>




wap上的option用法
刷新时间<select value='250' name='tv'><option value='50' onpick='>5秒</option><option value='150' onpick=''>15秒</option><option value='250' onpick=''>25秒</option><option value='600' onpick=''>60秒</option></select><br/>

wap上的timer控件:
<onevent type="ontimer"><go href="" /></onevent>
<timer  value="10"/>
<p>为热火投票成功!页面返回中……<br/><a href="">手动返回</a><br/>
<br/>

你可能感兴趣的:(java,jsp,xml,sun,WAP)