注册按钮无法正常跳转注册

凌凌就是凌 SpringMVC 与底层数据... 02月11日 16:02提问

  • 0 回答
  • 55 浏览

付页面代码及配置文件,注册按钮跳转的时候日志也没有获取到,怎么分析这个问题所在呢?

<%@ page language="java" contentType="text/html; charset=UTF-8"  %>
<!DOCTYPE html>
<html>
<head>
	<% String path=request.getContextPath(); %>
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="<%=path%>/img/favicon.ico">
    <!-- Bootstrap core CSS -->
    <link href="<%=path%>/css/bootstrap.min.css" rel="stylesheet">
    <link href="<%=path%>/css/bootstrapValidator.css" rel="stylesheet">
    <link href="<%=path%>/css/bootstrap-select.css" rel="stylesheet">
    <link href="<%=path%>/css/styles.css" rel="stylesheet">
    <!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
    <link href="<%=path%>/css/ie10-viewport-bug-workaround.css" rel="stylesheet">
    	<!-- 选择器相关的js -->
	<%-- <script src="<%=path%>/js/jQuery-v1.10.2.js"></script> --%>
	<script src="<%=path%>/js/jquery.min.js"></script>
    <script src="<%=path%>/js/bootstrap.min.js"></script>
	<script src="<%=path%>/js/bootstrap-select.js"></script>
    <script type="text/javascript">  
        $(window).on('load', function () {  
            $('.selectpicker').selectpicker({  
                'selectedText': '国电大渡河'  
            });  
        });  
    </script> 
    <!--bootstrapValidator验证框-->
    <script src="<%=path%>/js/bootstrapValidator/bootstrapValidator.js"></script> 
<title>用户注册</title>
</head>
<body>
<div class="header">
	     <div class="container">
	        <div class="row">
	           <div class="col-md-12">
	              <!-- Logo -->
	              <div class="logo">
	                 <h1><a href="<%=path%>/login.jsp">欢迎注册使用运维工作平台</a></h1>
	              </div>
	           </div>
	        </div>
	     </div>
	</div>
<div class="page-content container">
	<div class="row">
		<!-- <div class="col-md-4 col-md-offset-4"> -->
		<div class="col-lg-8 col-lg-offset-2">
			<div class="page-header">
                <h2>注册</h2>
            </div>
			<div class="login-wrapper">
				<div class="box">
					<div class="content-wrap">
					<input type="hidden" id="KEY" value="${SESSION_LOGIN_TOKEN}"/>
					<form id="registerForm" method="post" class="form-horizontal">
  						<div class="form-group">
    						<label class="col-lg-3 control-label" id="labUserName">用户名称</label>
    						<div id="unamediv" class="col-lg-5">
    							<input name="userName" type="text" class="form-control" id="InputUserName" placeholder="手机或邮箱地址" required="required" autofocus>
  								<font color="red">${error}</font>
  								<div style="display:none;" id="usernamecheckdiv" class="alert alert-danger" role="alert">
								</div>
  							</div>
  						</div>
  						<div class="form-group">
    						<label class="col-lg-3 control-label" for="InputPassword1">输入密码</label>
    						<div class="col-lg-5">
    							<input name="password1" type="password" class="form-control" id="InputPassword1" placeholder="字母数字字符组合6-30位" required="required">
  							</div>
  						</div>
  						<div class="form-group">
    						<label class="col-lg-3 control-label" for="InputPassword2">确认密码</label>
    						<div class="col-lg-5">
    							<input name="password2" type="password" class="form-control" id="InputPassword2" placeholder="确认密码" required="required">
  							</div>
  						</div>
  						<div class="form-group">
						    <label class="col-lg-3 control-label" for="realName">真实姓名</label>
						    <div class="col-lg-5">
						    	<input name="realName" type="text" class="form-control" id="realName" placeholder="真实姓名">
  							</div>
  						</div>
   						<div class="form-group">
    						<label class="col-lg-3 control-label" for="ProjectTeam">所属项目组</label>
   							<div class="col-lg-5">
	   							<select name="projectTeam" id="bs3Select" class="selectpicker show-tick form-control" data-live-search="true">  
									<option selected>国电大渡河</option>  
									<option>国电四川</option>  
	 							</select>  
 							</div>
  						</div>
						 <div class="form-group">
						  	<button id="regbtn" type="button" class="btn btn-primary signup" onclick="doRegister()">注册</b