乘法表
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP '2.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">
-->
</head>
<body>
<%
out.print("<table style='width:450px;height:270px' border='1'");
for(int i=1;i<10;i++){
out.print("<tr>");
for(int j=1;j<=i;j++){
out.print("<td>");
out.print(j+"脳"+i+"="+i*j);
out.print("</td>");
}
out.print("</tr>");
}
out.print("</table>");
%>
</body>
</html>
发布新闻
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'fabu.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">
</script>
</head>
<frameset rows="20%,*">
<frame name="top" src="top.jsp"/>
<frameset cols="30%,*">
<frame name="left" src="main.jsp"/>
<frame name="down" src="welcome.jsp"/>
</frameset>
</frameset>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'onetitle.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">
function demo(){
var b=true;
var onetxt=document.getElementById("onetxt");
var sonetxt=document.getElementById("sonetxt");
var main1=parent.frames[1].document.getElementById("f1");
if(onetxt.value.length==0){
sonetxt.style.color="red";
sonetxt.innerText="请输入一级标题";
b=false;
}else{
sonetxt.innerText="";
main1.innerHTML="<font style='color:#00FF00' id='f1' onclick='demo1(this)'><u>一级标题发布</u></font>";
parent.frames[2].location.href="onesuccess.jsp";
}
return b;
}
</script>
</head>
<body>
<form action="onesuccess.jsp" method="post" submit=" return demo()">
<center>
<h4>一级标题发布</h4>
<br/><br/><br/><br/>
标题名:<input type="text" id="onetxt"><span id="sonetxt"></span>
<br/><br/>
<input type="submit" value="确定"/>
<input type="reset" value="重置"/>
<br/><br/><br/><br/><br/>
<b>注意:发布前请认真检查输入的标题是否正确</b>
</center>
</form>
</body>
</html>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>My JSP 'twotitle.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">
function demo(){
var b=true;
var twotxt=document.getElementById("twotxt");
var stwotxt=document.getElementById("stwotxt");
var main2=parent.frames[1].document.getElementById("f2");
if(twotxt.value.length==0){
stwotxt.style.color="red";
stwotxt.innerText="请输入二级标题";
b=false;
}else{
stwotxt.innerText="";
main2.innerHTML="<font style='color:#00FF00' id='f2' onclick='demo2(this)'><u>二级标题及文件位置发布</u></font>";
parent.frames[2].location.href="twosuccess.jsp";
}
return b;
}
</script>
</head>
<body>
<form action="twosuccess.jsp" method="post" submit=" return demo()">
<center>
<h4>二级标题及文件位置发布</h4>
<br/><br/><br/><br/>
<table>
<tr>
<td>一级标题:</td>
<td>
<select id="one">
<option>金融热点</option>
<option>娱乐热点</option>
<option>体育热点</option>
</select>
</tr>
<tr>
<td>二级标题:</td>
<td>
<input type="text" id="twotxt"/><span id="stwotxt"></span>
</td>
</tr>
<tr>
<td>文件位置:</td>
<td>
<input type="file" value="浏览"/>
</td>
</tr>
</table>
<br/>
<input type="submit" value="确定"/>
<input type="reset" value="重置"/>
<br/><br/>
(二级标题最好与新闻稿件标题一致)
<br/><br/><br/>
<b>注意:发布前请认真检查输入的标题是否正确</b>
</center>
</form>
</body>
</html>
亿速云「云服务器」,即开即用、新一代英特尔至强铂金CPU、三副本存储NVMe SSD云盘,价格低至29元/月。点击查看>>
免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。