⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 secondtitle.jsp

📁 新闻发布系统
💻 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">&#20108;&#32423;&#26631;&#39064;&#21457;&#24067; 			</font></strong></h2>
			<form method="post" action="SecondTitle" name="form1">
				<p>
					&nbsp;
				</p>
				<p>
					&nbsp;
				</p>
				<table width="438" border="1" height="197">
					<tbody>
						<tr>
							<td>
								&nbsp;&#19968;&#32423;&#26631;&#39064;
							</td>
							<td>
								&nbsp;
								<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>
								&nbsp;&#20108;&#32423;&#26631;&#39064;
							</td>
							<td>&nbsp; 
								<input type="text" name="SecondTitleName"> 
							</td>
						</tr>
						<tr>
							<td>
								&nbsp;&#25991;&#20214;&#20301;&#32622;
							</td>
							<td>&nbsp; 
								<input type="file" name="FilePath"> 
							</td>
						</tr>
						<tr>
							<td>&nbsp; 
								<input type="reset" value="取消" name="button3"> 
							</td>
							<td>&nbsp; 
								<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 + -