web项目出现奇怪有关问题,求大神帮帮忙

web项目出现奇怪问题,求大神帮帮忙
本帖最后由 liangchaohua1255 于 2014-08-06 15:25:34 编辑
情况是这样的,现在有一个数据表,数据表中有一个datetime类型的元素bdate,现在我将它部署在window平台完全可以运行,但是部署在linux平台,java中的date就不会转成mysql的datetime类型,我上网找了好久,还是不行;现在上代码,求指导啊!

jsp:
<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<script type="text/javascript" language="javascript" src="jsalert/jquery.min.js" ></script>
<script type="text/javascript" language="javascript" src="jsalert/jquery.ui.draggable.js" ></script>
<script type="text/javascript" language="javascript" src="jsalert/jquery.alerts.js" ></script>
<script>
$(document).ready(function() {
    $("div").ajaxStart(function(){
       $("#loading").css("display", "block");
    });
$("#content > div").hide(); // Initially hide all content
$("#tabs li:first").attr("id","current"); // Activate first tab
$("#content div:first").fadeIn(); // Show first tab content
    
    $('#tabs a').click(function(e) {
        e.preventDefault();        
        $("#content > div").hide(); //Hide all content
        $("#tabs li").attr("id",""); //Reset id's
        $(this).parent().attr("id","current"); // Activate this
        $('#' + $(this).attr('title')).fadeIn(); // Show content for current tab
    });

});

function checkspace(checkstr) {
  var str = '';
  for(i = 0; i < checkstr.length; i++) {
    str = str + ' ';
  }
  return (str == checkstr);
}
function check()
{
  var code=$("#user").val();
  var pw=$("#password").val();
  if(checkspace(code)) {
    jAlert("身份证不能为空!","提示信息");
    return;
  }
  if(checkspace(pw)) {
    jAlert("密码不能为空!","提示信息");
    return;
  }
     $.ajax({
            type: "POST",
        url : "studentfindsfzhmpw!findsfzhmpw.action",
data : {
code : code,
pw : pw
},
dataType : 'json',
timeout : 30000,
async : true,
success : function(data) {
   if (data.ok=="suc"){
                  location.href='studentfindid!findid.action';
   }else{
                  $("#loading").css("display", "none");
                  jAlert("身份证或密码输入有误!","提示信息");
   }
            },
            error: function(){
               $("#loading").css("display", "none");
               jAlert("网络出错,请重试!","提示信息");
            }   
      });
}

</script>
</head>

<body>
  <div id="login">
    <div id="logo"><img src="images/logo.png"/></div>
    <div id="container">
      <div id="content"> 
        <div id="tab1">
          <form action="" method="get">
            <p><label for="user" style="background-color:#28b779;">身份证</label><input name="user" type="text" id="user"></p>
            <p><label for="password" style="background-color:#ffb848;">密码</label><input name="password" type="password" id="password"></p>
            <p><input type="button" onclick='check()' value="登&#32;录"></p>
          </form>
        </div>
      </div>