开始时单独导入到jsp的空白页面,时间的函数可以发挥作用,代码如下:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>
    
My97date
 
      -      
$(function(){  $("#time").blur(function(){  var time =$(this).val();  if(time==""){  alert("请选择时间");  }      });});上面的代码可以正常显示时间的格式

实际用到的页面为:

<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%><%@taglib prefix="s"  uri="/struts-tags"%><%String path = request.getContextPath();String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%>        
<%=basePath%>">        
My JSP 'info.jsp' starting page        
    
    
        
    
        
                        
                            申请休假                                                
                                                
" method="post" οnsubmit="return checkAll()" enctype="application/x-www-form-urlencoded" target="_self1">                                                       
                                
                                        
姓名:
                                                                
                                    
开始时间:
*
                                                                 
                                    
结束时间:
*
                                                                     
                                    
请假天数:
*
                                                                                                                                
                                    
请假原因:
                                                                
                                    
审批人:
                                    
                                     
                                       
">
                                                                                                                                                                                                                               
                                    
                                    
                                    
                                                                                                                                                                                                                                     

红色区域为时间插件可以显示的顺序,之前的顺序css在最前,其次是jQuery和时间的插件,修改后恢复正常,同时当时使用的是MyEclipse,需要重新启动方可正常显示,所以修改之后,要重新启动服务器.