📄 createdate.jsp
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-bean" prefix="bean" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-logic" prefix="logic" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-tiles" prefix="tiles" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-template" prefix="template" %>
<%@ taglib uri="http://jakarta.apache.org/struts/tags-nested" prefix="nested" %>
<html:html >
<head>
<html:base />
<title>createdate.jsp</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<script language="javascript">
function submitForm(){
if(document.createDateForm.date.value == ''){
alert('春节日期不能为空!');
return false;
}
document.createDateForm.action='/YZOA/createDateAction.do';
document.createDateForm.submit();
}
</script>
</head>
<logic:present name="sc" scope="request">
<script>
alert('年度新增成功!');
window.opener.location.reload();
window.close();
</script>
</logic:present>
<body>
<html:form action="/createDateAction.do">
<table>
<tr><td>年度选择</td>
<td><html:select property="year">
<logic:present name="subCollection" scope="request">
<html:options collection="subCollection" name="SelectCollectionBean" property="value" labelProperty="value" />
</logic:present>
</html:select></td>
</tr>
<tr>
<td>春节日期</td>
<td><html:text property="date" /></td>
</tr>
<tr>
<td><input type="button" value="确认" onclick='submitForm()'/>
<input type="button" value="关闭" onClick="window.close();"/>
</td>
</tr>
</table>
</html:form>
</body>
</html:html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -