SpringMVC from 表单标签和 input 表单标签
刚学习很懵 不知道还有springmvc 自己的表单 于是乎就上网查了一下 这个真的好用多啦
刚学习很懵 不知道还有springmvc 自己的表单 于是乎就上网查了一下 这个真的好用多啦
刚学习很懵 不知道还有springmvc 自己的表单 于是乎就上网查了一下 这个真的好用多啦
详细信息 springmvc 表单大全哟@
https://www.yiibai.com/spring_mvc/
- <form:form action="formTag/form.do" method="post">
- <table>
- <tr>
- <td>Name:</td><td><form:input path="name"/></td>
- </tr>
- <tr>
- <td>Age:</td><td><form:input path="age"/></td>
- </tr>
- <tr>
- <td colspan="2"><input type="submit" value="提交"/></td>
- </tr>
- </table>
- </form:form>
- <form id="command" action="formTag/form.do" method="post">
- <table>
- <tr>
- <td>Name:</td><td><input id="name" name="name" type="text" value="ZhangSan"/></td>
- </tr>
- <tr>
- <td>Age:</td><td><input id="age" name="age" type="text" value="36"/></td>
- </tr>
- <tr>
- <td colspan="2"><input type="submit" value="提交"/></td>
- </tr>
- </table>
- </form>
<body>
<ul class="nav nav-tabs">
<li><a href="${ctx}/academic/expert/">专家学者列表</a></li>
<li class="active"><a href="${ctx}/academic/expert/form?id=${expert.id}">专家学者<shiro:hasPermission name="academic:expert:edit">${not empty expert.id?'修改':'添加'}</shiro:hasPermission><shiro:lacksPermission name="academic:expert:edit">查看</shiro:lacksPermission></a></li>
</ul><br/>
<form:form id="inputForm" modelAttribute="expert" action="${ctx}/academic/expert/save" method="post" class="form-horizontal">
<form:hidden path="id"/>
<sys:message content="${message}"/>
<div class="control-group">
<label class="control-label">姓名:</label>
<div class="controls">
<form:input path="fullName" htmlEscape="false" maxlength="255" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<div class="control-group">
<label class="control-label">姓名首字母:</label>
<div class="controls">
<form:select path="initialName" class="input-small ">
<form:option value="" label=""/>
<form:option value="A" label="A" />
<form:option value="B" label="B" />
<form:option value="C" label="C" />
<form:option value="D" label="D" />
<form:option value="E" label="E" />
<form:option value="F" label="F" />
<form:option value="G" label="G" />
<form:option value="H" label="H" />
<form:option value="I" label="I" />
<form:option value="J" label="J" />
<form:option value="K" label="K" />
<form:option value="L" label="L" />
<form:option value="M" label="M" />
<form:option value="N" label="N" />
<form:option value="O" label="O" />
<form:option value="P" label="P" />
<form:option value="Q" label="Q" />
<form:option value="R" label="R" />
<form:option value="S" label="S" />
<form:option value="T" label="T" />
<form:option value="U" label="U" />
<form:option value="V" label="V" />
<form:option value="W" label="W" />
<form:option value="X" label="X" />
<form:option value="Y" label="Y" />
<form:option value="Z" label="Z" />
</form:select> <span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<div class="control-group">
<label class="control-label">头像:</label>
<div class="controls">
<form:hidden id="nameImage" path="photo" htmlEscape="false" maxlength="255" class="input-xlarge"/>
<sys:ckfinder input="nameImage" type="images" uploadPath="/academic/expert" selectMultiple="false" maxWidth="100" maxHeight="100"/>
</div>
</div>
<div class="control-group">
<label class="control-label">国家:</label>
<div class="controls">
<form:select path="country" class="input-xlarge required">
<form:option value="" label=""/>
<form:options items="${fns:getDictList('country')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
</form:select>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<div class="control-group">
<label class="control-label">是否在首页显示:</label>
<div class="controls">
<form:radiobuttons path="isShowHomepage" items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false" class="required"/>
<span class="help-inline"><font color="red">*</font> </span>
</div>
</div>
<div class="control-group">
<label class="control-label">工作单位:</label>
<div class="controls">
<form:input path="orgName" htmlEscape="false" maxlength="255" class="input-xlarge "/>
</div>
</div>
<%--<div class="control-group">
<label class="control-label">所属研究机构:</label>
<div class="controls">
<c:if test="${not empty expert.id }">
${expert.studyBranch}
</c:if>
</div>
</div>--%>
<div class="control-group">
<label class="control-label">职称职务:</label>
<div class="controls">
<form:input path="position" htmlEscape="false" maxlength="255" class="input-xlarge "/>
</div>
</div>
<div class="control-group">
<label class="control-label">个人简介:</label>
<div class="controls">
<form:textarea path="info" htmlEscape="false" rows="4" maxlength="5000" class="input-xxlarge "/>
</div>
</div>
<div class="control-group">
<label class="control-label">研究领域:</label>
<div class="controls">
<form:textarea path="research" htmlEscape="false" rows="4" maxlength="500" class="input-xxlarge "/>
</div>
</div>
<div class="control-group">
<label class="control-label">研究成果:</label>
<div class="controls">
<form:textarea id="majorWorks" htmlEscape="false" path="majorWorks" rows="4" class="input-xxlarge"/>
<sys:ckeditor replace="majorWorks" uploadPath="/academic/expert" />
</div>
</div>
<%--<div class="control-group">--%>
<%--<label class="control-label">论文:</label>--%>
<%--<div class="controls">--%>
<%--<form:textarea id="paper" htmlEscape="false" path="paper" rows="4" class="input-xxlarge"/>--%>
<%--<sys:ckeditor replace="paper" uploadPath="/academic/expert" />--%>
<%--</div>--%>
<%--</div>--%> <div class="control-group">
<label class="control-label">备注信息:</label>
<div class="controls">
<form:textarea path="remarks" htmlEscape="false" rows="4" maxlength="255" class="input-xxlarge "/>
</div>
</div>
<div class="form-actions">
<shiro:hasPermission name="academic:expert:edit"><input id="btnSubmit" class="btn btn-primary" type="submit" value="保 存"/> </shiro:hasPermission>
<input id="btnCancel" class="btn" type="button" value="返 回" onclick="history.go(-1)"/>
</div>
</form:form>
</body>
哈哈哈哈 好喜欢 哟 欢迎吐槽
SpringMVC from 表单标签和 input 表单标签的更多相关文章
- button标签与input type=button标签使用的差异
button标签和input type=button标签都是html文档中用来表示按钮属性的元素,不过他们在布局和实际使用功能中存在一些差异. 下面将项目中遇到的一些总结如下: 1.属性和布局差异. ...
- [转]SpringMVC<from:form>表单标签和<input>表单标签简介
原文地址:https://blog.csdn.net/hp_yangpeng/article/details/51906654 在使用SpringMVC的时候我们可以使用Spring封装的一系列表单标 ...
- H5 基本标签使用 浅析 (含video标签、input表单等)
1. 音频标签<audio> <audio src = “./music/Alone.mp3” controls autoplay loop = “3” ></audio ...
- <button>标签与<input type="button">标签
<script type="text/javascript" src="/jquery-1.11.3.min.js"></script> ...
- SpringMVC学习系列(11) 之 表单标签
本篇我们来学习Spring MVC表单标签的使用,借助于Spring MVC提供的表单标签可以让我们在视图上展示WebModel中的数据更加轻松. 一.首先我们先做一个简单了例子来对Spring MV ...
- 表单相关标签之input标签
用于搜集用户信息. <input type="text" name="fname" /> 标签属性 type 规定 input 元素的类型.输入字段 ...
- 阻止form元素内的input标签回车提交表单
<form></form>标签内input元素回车会默认提交表单. 阻止回车默认提交表单: $('form').on('keydown', function (event) { ...
- 前端与后台可能需要使用交互的表单form,input标签
前端与后台可能需要使用交互的表单标签 form表单和input标签 textarea文本域表单 select,option下拉列表表单 fieldset和legend组合表单 label标签 form ...
- 表单提交按钮input和button、a的差异
现在普遍的在网页中,表单提交数据的按钮最常见实用有三种,一种是input,一种是button,最后一种,是其他如a标签,div标签,span标签代替而来.在以前的日子里,大家都习惯于用input,因为 ...
随机推荐
- spring与struts有什么区别?
Struts只是一个MVC框架(Framework),用于快速开发Java Web应用.Struts实现的重点在C(Controller),包括ActionServlet/RequestProcess ...
- Delphi Android 询问框
Delphi Android 询问框 http://community.embarcadero.com/blogs/entry/xe7-dialog-box-methods-support-anony ...
- 磨刀——python及相关工具
1.python语言包 1.1去https://www.python.org/,在download栏下载最新版python2或者python3 tips:1.点击下载会很慢,推荐:迅雷,百度云盘下载, ...
- Linux 使用静态库注意事项
1. 静态库一定要放在生成文件后面 gcc main.c -o main libhello.a 2. 使用静态库时一定要连接所有用到的静态库 gcc main.c -o main liba.a lib ...
- 算法Sedgewick第四版-第1章基础-014一用stack把前置表达式转为后置表达式并计算值
1. /************************************************************************* * Exercise 1.3.10 * * ...
- 第一篇:Django基础
Django框架第一篇基础 一个小问题: 什么是根目录:就是没有路径,只有域名..url(r'^$') 补充一张关于wsgiref模块的图片 一.MTV模型 Django的MTV分别代表: Model ...
- scala中同步块
private def initializeIfNecessary() { if (!Logging.initialized) { Logging.initLock.synchronized { if ...
- STL-- vector中resize()和reserve()区别
最近写了一个小型的STL--TinySTL.发现有一些基础的东西需要记录下来,所以我打算多写一些东西,方便以后查看. 先看看<C++ Primer>中对resize()函数两种用法的介绍: ...
- enumerate()函数
for index,value in enumerate(list): print index,value 等于for i in range(0,len(list)): print i,l ...
- Win提权思路,方法,工具(小总结)[转]
Win提权思路,方法,工具(小总结)[转] 看到这个文章,感觉整理的不错,就收藏下了. 介绍 windows提权总是被归结为适当的枚举.但要完成适当的枚举,你需要知道要检查和查找的内容.这通常需要伴随 ...