H5W3
当前位置:H5W3 > 其他技术问题 > 正文

这个页面的form标签提交地址是什么呀?怎么找不到

<%@page contentType="text/html;charset=UTF-8"%>
<%@page pageEncoding="UTF-8"%>
<%@ page session="false" %>
<%@ page import="java.util.*" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="security" uri="http://www.springframework.org/security/tags" %>
<!DOCTYPE html>
<html lang="zh">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>用户信息</title>
    <link rel="stylesheet" href="http://cdn.bootcss.com/bootstrap/3.3.2/css/bootstrap.min.css">
    <!--[if lt IE 9]>
      <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
      <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
    
    <link rel="stylesheet" href="<c:url value="/styles/jquery.autocomplete.css" />" type="text/css"/>

  </head>
  <body style="padding-top:1em">
    <div class="container">
    <h4 class="col-xs-offset-2" style="padding-left:0.5em;font-weight:bold;margin-bottom:1em;border-bottom:0.1em dotted #c0c0c0">用户信息</h4>
<form:form modelAttribute="webUser" cssClass="form-horizontal" action="save" method="post">
    <form:hidden path="id"/>
    <form:hidden path="address"/>
    <form:hidden path="brief"/>
    <form:hidden path="gender"/>
    <form:hidden path="specialty"/>
    <form:hidden path="degree"/>
    <form:hidden path="telephone"/>
    <form:hidden path="zipcode"/>
    <form:hidden path="country"/>
    <form:hidden path="city"/>
    <form:hidden path="sections"/>
    <form:hidden path="headImage"/>
    <form:hidden path="originalImage"/>
    <form:hidden path="doctorImage"/>
    <form:hidden path="doctorOrigImage"/>
    <form:hidden path="proj_owned"/>
    <form:hidden path="proj_invited"/>
    <form:hidden path="proj_staff"/>
    <form:hidden path="proj_collecting"/>
    <form:hidden path="proj_collected"/>
    <form:hidden path="case_owned"/>
    <form:hidden path="case_shared"/>
    <form:hidden path="case_in_proj"/>
    <form:hidden path="case_in_base"/>
    <form:hidden path="case_disease"/>
    <form:hidden path="img_owned"/>
    <form:hidden path="related_pi"/>
    <form:hidden path="staff_owned"/>
    <form:hidden path="wx_qr_ticket"/>
  <div class="form-group">
    <form:label    for="username" path="username" cssClass="col-xs-3 control-label" cssErrorClass="has-error">用户名</form:label>
    <div class="col-xs-9">
      <form:input path="username" cssClass="form-control" /> <form:errors path="username" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="email" path="email" cssClass="col-xs-3 control-label" cssErrorClass="has-error">email</form:label>
    <div class="col-xs-9">
      <form:input path="email" cssClass="form-control" /> <form:errors path="email" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="true_name" path="true_name" cssClass="col-xs-3 control-label" cssErrorClass="has-error">真实姓名</form:label>
    <div class="col-xs-9">
      <form:input path="true_name"  cssClass="form-control"/> <form:errors path="true_name" />    
    </div>    
  </div>
  <security:authorize access="hasRole('ROLE_SYS')">
  <div class="form-group">
    <form:label    for="raw_pwd" path="raw_pwd" cssClass="col-xs-3 control-label" cssErrorClass="has-error">密码</form:label>
    <div class="col-xs-9">
      <form:input path="raw_pwd"  cssClass="form-control"/> <form:errors path="raw_pwd" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="status" path="status" cssClass="col-xs-3 control-label" cssErrorClass="has-error">可用</form:label>
    <div class="col-xs-9">
      <form:input path="status" cssClass="form-control" /> <form:errors path="status" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="grade" path="grade" cssClass="col-xs-3 control-label" cssErrorClass="has-error">grade</form:label>
    <div class="col-xs-9">
      <form:input path="grade" cssClass="form-control" /> <form:errors path="grade" />    
    </div>    
  </div>
  </security:authorize>
  <div class="form-group">
    <form:label    for="mobile" path="mobile" cssClass="col-xs-3 control-label" cssErrorClass="has-error">手机号</form:label>
    <div class="col-xs-9">
      <form:input path="mobile" cssClass="form-control" /> <form:errors path="mobile" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="title" path="title" cssClass="col-xs-3 control-label" cssErrorClass="has-error">职称</form:label>
    <div class="col-xs-9">
      <form:input path="title" cssClass="form-control" /> <form:errors path="title" />    
    </div>    
  </div>
  
  <div class="form-group">
    <form:label    for="job" path="job" cssClass="col-xs-3 control-label" cssErrorClass="has-error">单位</form:label>
    <div class="col-xs-9">
      <form:input path="job" cssClass="form-control" /> <form:errors path="job" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="sectionsName" path="sectionsName" cssClass="col-xs-3 control-label" cssErrorClass="has-error">科别</form:label>
    <div class="col-xs-9">
      <form:input path="sectionsName" cssClass="form-control" /> <form:errors path="sectionsName" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="profession" path="profession" cssClass="col-xs-3 control-label" cssErrorClass="has-error">职业</form:label>
    <div class="col-xs-9">
      <form:input path="profession" cssClass="form-control" /> <form:errors path="profession" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="order_num" path="order_num" cssClass="col-xs-3 control-label" cssErrorClass="has-error">order_num</form:label>
    <div class="col-xs-9">
      <form:input path="order_num" cssClass="form-control" /> <form:errors path="order_num" />    
    </div>    
  </div>
  <security:authorize access="hasRole('ROLE_SYS')">
  <div class="form-group">
    <form:label    for="global_priv" path="global_priv" cssClass="col-xs-3 control-label" cssErrorClass="has-error">权限</form:label>
    <div class="col-xs-9">
      <form:select path="global_priv" cssClass="form-control">
        <form:option value="1" label="未授权用户" />
        <form:option value="2" label="授权用户"/>
        <form:option value="3" label="科研版用户"/>
        <form:option value="4" label="定制版用户"/>
        <form:option value="9" label="后台管理员"/>
    </form:select>    
    </div>    
  </div>
  </security:authorize>
  <div class="form-group">
    <form:label    for="interest_cnt" path="interest_cnt" cssClass="col-xs-3 control-label" cssErrorClass="has-error">interest_cnt</form:label>
    <div class="col-xs-9">
      <form:input path="interest_cnt" cssClass="form-control" /> <form:errors path="interest_cnt" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="click_cnt" path="click_cnt" cssClass="col-xs-3 control-label" cssErrorClass="has-error">click_cnt</form:label>
    <div class="col-xs-9">
      <form:input path="click_cnt" cssClass="form-control" /> <form:errors path="click_cnt" />    
    </div>    
  </div>
  
  <div class="form-group">
    <form:label    for="wx_title" path="wx_title" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_title</form:label>
    <div class="col-xs-9">
      <form:input path="wx_title" cssClass="form-control" /> <form:errors path="wx_title" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_web_title" path="wx_web_title" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_web_title</form:label>
    <div class="col-xs-9">
      <form:input path="wx_web_title" cssClass="form-control" /> <form:errors path="wx_web_title" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_pic_url" path="wx_pic_url" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_pic_url</form:label>
    <div class="col-xs-9">
      <form:input path="wx_pic_url" cssClass="form-control" /> <form:errors path="wx_pic_url" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_title_pic_url" path="wx_title_pic_url" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_title_pic_url</form:label>
    <div class="col-xs-9">
      <form:input path="wx_title_pic_url" cssClass="form-control" /> <form:errors path="wx_title_pic_url" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_resp_title" path="wx_resp_title" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_resp_title</form:label>
    <div class="col-xs-9">
      <form:input path="wx_resp_title" cssClass="form-control" /> <form:errors path="wx_resp_title" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_resp_desc" path="wx_resp_desc" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_resp_desc</form:label>
    <div class="col-xs-9">
      <form:textarea path="wx_resp_desc" cssClass="form-control" rows="3" /> <form:errors path="wx_resp_desc" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_resp_full_desc" path="wx_resp_full_desc" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_resp_full_desc</form:label>
    <div class="col-xs-9">
      <form:textarea path="wx_resp_full_desc" cssClass="form-control" rows="5" /> <form:errors path="wx_resp_full_desc" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_big_pic_url" path="wx_big_pic_url" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_big_pic_url</form:label>
    <div class="col-xs-9">
      <form:input path="wx_big_pic_url" cssClass="form-control" /> <form:errors path="wx_big_pic_url" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_msg_prefix" path="wx_msg_prefix" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_msg_prefix</form:label>
    <div class="col-xs-9">
      <form:input path="wx_msg_prefix" cssClass="form-control" /> <form:errors path="wx_msg_prefix" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_clinic_time" path="wx_clinic_time" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_clinic_time</form:label>
    <div class="col-xs-9">
      <form:input path="wx_clinic_time" cssClass="form-control" /> <form:errors path="wx_clinic_time" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_hospital_section" path="wx_hospital_section" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_hospital_section</form:label>
    <div class="col-xs-9">
      <form:input path="wx_hospital_section" cssClass="form-control" /> <form:errors path="wx_hospital_section" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_portrait" path="wx_portrait" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_portrait</form:label>
    <div class="col-xs-9">
      <form:input path="wx_portrait" cssClass="form-control" /> <form:errors path="wx_portrait" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_openid" path="wx_openid" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_openid</form:label>
    <div class="col-xs-9">
      <form:input path="wx_openid" cssClass="form-control" /> <form:errors path="wx_openid" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_qr_bg_img_rel" path="wx_qr_bg_img_rel" cssClass="col-xs-3 control-label" cssErrorClass="has-error">wx_qr_bg_img_rel</form:label>
    <div class="col-xs-9">
      <form:input path="wx_qr_bg_img_rel" cssClass="form-control" /> <form:errors path="wx_qr_bg_img_rel" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_qr_img_url" path="wx_qr_img_url" cssClass="col-xs-3 control-label" cssErrorClass="has-error">医生获得的二维码图(相对URL)</form:label>
    <div class="col-xs-9">
      <form:input path="wx_qr_img_url" cssClass="form-control" /> <form:errors path="wx_qr_img_url" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_qr_show_img_url" path="wx_qr_show_img_url" cssClass="col-xs-3 control-label" cssErrorClass="has-error">患者扫码图</form:label>
    <div class="col-xs-9">
      <form:input path="wx_qr_show_img_url" cssClass="form-control" /> <form:errors path="wx_qr_show_img_url" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="wx_qr_url" path="wx_qr_url" cssClass="col-xs-3 control-label" cssErrorClass="has-error">二维码内容</form:label>
    <div class="col-xs-9">
      <form:input path="wx_qr_url" cssClass="form-control" /> <form:errors path="wx_qr_url" />    
    </div>    
  </div>
  
  <div class="form-group">
    <form:label    for="known_names" path="known_names" cssClass="col-xs-3 control-label" cssErrorClass="has-error">已知专家姓名(,分割)</form:label>
    <div class="col-xs-9">
      <form:input path="known_names" cssClass="form-control" /> <form:errors path="known_names" />    
    </div>    
  </div>
  <div class="form-group">
    <form:label    for="news_doclist_name" path="news_doclist_name" cssClass="col-xs-3 control-label" cssErrorClass="has-error">个人动态Code</form:label>
    <div class="col-xs-9">
      <form:input path="news_doclist_name" cssClass="form-control" /> <form:errors path="news_doclist_name" />    
    </div>    
  </div>
  
  
  <div class="form-group">
    <div class="col-xs-offset-3 col-xs-9">
        
      <input type="submit" class="btn btn-primary" value="保存">
    </div>
  </div>
</form:form>
    </div>
    <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
    <script src="http://cdn.bootcss.com/jquery/1.11.2/jquery.min.js"></script>
    <!-- Include all compiled plugins (below), or include individual files as needed -->
    <script src="http://cdn.bootcss.com/bootstrap/3.3.2/js/bootstrap.min.js"></script>
    <script type="text/javascript" src="<c:url value="/scripts/jquery.autocomplete.min.js" />" charset="utf-8"></script>
<script type="text/javascript">
    var acOptions = {
        minChars: 0,
        width: 310,
        max: 100,
        dataType: 'json', 
        extraParams: {
        format: 'json' },
        parse: function(data) {
         // alert(data);
            var parsed = [];
            for (var i = 0; i < data.data.length; i++) {
                parsed[parsed.length] = {
                  data: data.data[i],
                 //返回的json数据:{["kindname":"a"},["kindname":"b"]}
                  value: data.data[i].cnname,
                  result: data.data[i].cnname
                };
            }
            return parsed;
        },
        formatItem: function(item) {
            return item.cnname;
        }
    };
    $("#job").autocomplete("<c:url value="/hospital/list/ajax"/>",acOptions);
        
    
</script>
  </body>
</html>

回答:

如果没写,默认就是本页面。

回答:

action一般是提交到一个控制器,你看看action=save的提交,控制器会转到哪个url.没有的话就是本页面了。

本文地址:H5W3 » 这个页面的form标签提交地址是什么呀?怎么找不到

评论 0

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址