Jsp 动态显示系统时间

阅读更多

<%@ page language="java" import="java.util.*,java.sql.*,com.abin.db.connection.*,java.text.*,com.abin.test.connection.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>



  
    Javascript time
    
  

  
	


jsp时间 <% Timestamp time=new Timestamp(System.currentTimeMillis()); out.println(time.toString()); %>








 //加入   之间

<%
Timestamp   time   =   new   Timestamp(System.currentTimeMillis());
out.println(time.toString());
%> 


你可能感兴趣的:(JSP,Java,JavaScript,SQL,HTML)