📄 secondtitle.jsp
字号:
<%@ page language="java" import="java.util.*,com.Bean.*"
pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme() + "://"
+ request.getServerName() + ":" + request.getServerPort()
+ path + "/";
%>
<%
FirstLevelTitle first=new FirstLevelTitle();
ArrayList lst=(ArrayList)first.selFirstTitle();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'SecondTitle.jsp' starting page</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 type="text/javascript" language="JavaScript">
function checkTitleFile()
{
if(form.SecondTitleName.value ==null || form.SecondTitleName.value=="")
{
alert("请输入二级标题!");
return false;
}
if(form.FilePath.value ==null || form.FilePath.value=="")
{
alert("请指定对应文件路径!");
return false;
}
return true;
}
</script>
</head>
<body bgcolor="#E8EDEF">
<div align="center"><br><h2><strong><font color="#004080">二级标题发布 </font></strong></h2>
<form method="post" action="SecondTitle" name="form1">
<p>
</p>
<p>
</p>
<table width="438" border="1" height="197">
<tbody>
<tr>
<td>
一级标题
</td>
<td>
<select size="1" name="firstTitle" >
<%
//指定一级标题
if(lst.size()>0)
{
for(int i=0;i<lst.size();i++)
{
first=(FirstLevelTitle)lst.get(i);
%>
<option value="<%=first.getTitleID() %>"><%=first.getTitleName() %></option>
<%
}
}
%>
</select>
</td>
</tr>
<tr>
<td>
二级标题
</td>
<td>
<input type="text" name="SecondTitleName">
</td>
</tr>
<tr>
<td>
文件位置
</td>
<td>
<input type="file" name="FilePath">
</td>
</tr>
<tr>
<td>
<input type="reset" value="取消" name="button3">
</td>
<td>
<input type="submit" value="提交" name="button4">
</td>
</tr>
</tbody>
</table><br><br><br>
</form>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -