通过<a href=""></a>和<form action/>的不同+页面日期格式化
2014-07-19 17:27
477 查看
<p align="center">
课程名称 <input type="text" name="nameSou" id="txt" value=""
size="30" style="font-size:18px;"> <a
href="course_list.action">搜索</a>
</p>
<table>
<tr>
<s:form action="course_list.action" method="post">
<td></td>
<td>课程名称<input type="text" name="nameSou" width="30%" /></td>
<td><input type="submit" value="查询" /></td>
</s:form>
</tr>
</table>
form可以提交成功,而href没有成功,用的时候自己试试就可以!
日期格式化:
<tr>
<td align="left">选课时间</td>
<td><input type="text" value="<fmt:formatDate value='<%=new Date()%>' type='date' dateStyle='medium'/>"
name="elective.eleTime"/></td>
</tr>
<td>出生日期</td>
<td><input type="text" id="birthTime" name="at.birthday"
value="<s:date name='birthday' format='yyyy-MM-dd'/>"></td>
课程名称 <input type="text" name="nameSou" id="txt" value=""
size="30" style="font-size:18px;"> <a
href="course_list.action">搜索</a>
</p>
<table>
<tr>
<s:form action="course_list.action" method="post">
<td></td>
<td>课程名称<input type="text" name="nameSou" width="30%" /></td>
<td><input type="submit" value="查询" /></td>
</s:form>
</tr>
</table>
form可以提交成功,而href没有成功,用的时候自己试试就可以!
日期格式化:
<tr>
<td align="left">选课时间</td>
<td><input type="text" value="<fmt:formatDate value='<%=new Date()%>' type='date' dateStyle='medium'/>"
name="elective.eleTime"/></td>
</tr>
<td>出生日期</td>
<td><input type="text" id="birthTime" name="at.birthday"
value="<s:date name='birthday' format='yyyy-MM-dd'/>"></td>
相关文章推荐
- spring3 jsp页面使用<form:form modelAttribute="xxxx" action="xxxx">报错,附连接数据库的spring MVC annotation 案例
- spring3 jsp页面使用<form:form modelAttribute="xxxx" action="xxxx">报错,附连接数据库的spring MVC annotation 案例
- java如何获取jsp页面上传的文件路径 20 前台jsp: <form action="AA.do?method=yktAdd" method="post" > <input type='text'
- <form action="get.php" method="post" id="tform"> <input type="text" name="one"> <a href="jav
- IE6通过点击 <a href="javascript:void(0);"></a>方式动态创建iframe无法显示
- <a href="<s:url action="navDel" ><s:param name="id" value="pid"/></s:url>"> 删除 </a>
- (6)开发收获 <base href="<%=basePath%>">JSP页面中的相对路径问题
- <s:form action="XX.action"> 与 <s:form action="XX"> 的区别
- 普通html中<form>标签和struts2中<s:form>标签action属性的不同
- struts <s:form action=""> 和 <s:submit action=""> 的区别
- 使用html <a href=""/>标签连接action的方法
- <form action="form_action.asp" method="get">
- Spring MVC的 <form action="" /> 表单提交相对路径异常问题
- struts 2.0 <s:form action = "" theme="simple"> theme ="simple"
- 不同浏览器下<a href="#">与<a href="javascript:void(0);">的区别
- 使用action属性接收参数<a href="user/user!add?name=a&age=8">添加用户</a>
- 一些页面自动跳转的实现 转自<a href="http://www.blogjava.net/Jcat/archive/2006/11/22/82831.html" target="_blank">http://www.blogjava.net/Jcat/archive/2006/11/22/82831.html</a>
- IE6通过点击 <a href="javascript:void(0);"></a>方式动态创建iframe无法显示
- 20130114--关于<a href="#">页面变形
- <form action="">