乘法表

<%@pagelanguage="java"import="java.util.*"pageEncoding="UTF-8"%><%Stringpath=request.getContextPath();StringbasePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN"><html><head><basehref="<%=basePath%>"><title>MyJSP'2.jsp'startingpage</title><metahttp-equiv="pragma"content="no-cache"><metahttp-equiv="cache-control"content="no-cache"><metahttp-equiv="expires"content="0"><metahttp-equiv="keywords"content="keyword1,keyword2,keyword3"><metahttp-equiv="description"content="Thisismypage"><!--<linkrel="stylesheet"type="text/css"href="styles.css">--></head><body><%out.print("<tablestyle='width:450px;height:270px'border='1'");for(inti=1;i<10;i++){out.print("<tr>");for(intj=1;j<=i;j++){out.print("<td>");out.print(j+"脳"+i+"="+i*j);out.print("</td>");}out.print("</tr>");}out.print("</table>");%></body></html>

发布新闻

<%@pagelanguage="java"import="java.util.*"pageEncoding="UTF-8"%><%Stringpath=request.getContextPath();StringbasePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN"><html><head><basehref="<%=basePath%>"><title>MyJSP'fabu.jsp'startingpage</title><metahttp-equiv="pragma"content="no-cache"><metahttp-equiv="cache-control"content="no-cache"><metahttp-equiv="expires"content="0"><metahttp-equiv="keywords"content="keyword1,keyword2,keyword3"><metahttp-equiv="description"content="Thisismypage"><!--<linkrel="stylesheet"type="text/css"href="styles.css">--><scripttype="text/javascript"></script></head><framesetrows="20%,*"><framename="top"src="top.jsp"/><framesetcols="30%,*"><framename="left"src="main.jsp"/><framename="down"src="welcome.jsp"/></frameset></frameset></html>

<%@pagelanguage="java"import="java.util.*"pageEncoding="UTF-8"%><%Stringpath=request.getContextPath();StringbasePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN"><html><head><basehref="<%=basePath%>"><title>MyJSP'onetitle.jsp'startingpage</title><metahttp-equiv="pragma"content="no-cache"><metahttp-equiv="cache-control"content="no-cache"><metahttp-equiv="expires"content="0"><metahttp-equiv="keywords"content="keyword1,keyword2,keyword3"><metahttp-equiv="description"content="Thisismypage"><!--<linkrel="stylesheet"type="text/css"href="styles.css">--><scripttype="text/javascript">functiondemo(){varb=true;varonetxt=document.getElementById("onetxt");varsonetxt=document.getElementById("sonetxt");varmain1=parent.frames[1].document.getElementById("f1");if(onetxt.value.length==0){sonetxt.style.color="red";sonetxt.innerText="请输入一级标题";b=false;}else{sonetxt.innerText="";main1.innerHTML="<fontstyle='color:#00FF00'id='f1'onclick='demo1(this)'><u>一级标题发布</u></font>";parent.frames[2].location.href="onesuccess.jsp";}returnb;}</script></head><body><formaction="onesuccess.jsp"method="post"submit="returndemo()"><center><h4>一级标题发布</h4><br/><br/><br/><br/>标题名:<inputtype="text"id="onetxt"><spanid="sonetxt"></span><br/><br/><inputtype="submit"value="确定"/>&nbsp;<inputtype="reset"value="重置"/><br/><br/><br/><br/><br/><b>注意:发布前请认真检查输入的标题是否正确</b></center></form></body></html>


<%@pagelanguage="java"import="java.util.*"pageEncoding="UTF-8"%><%Stringpath=request.getContextPath();StringbasePath=request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";%><!DOCTYPEHTMLPUBLIC"-//W3C//DTDHTML4.01Transitional//EN"><html><head><basehref="<%=basePath%>"><title>MyJSP'twotitle.jsp'startingpage</title><metahttp-equiv="pragma"content="no-cache"><metahttp-equiv="cache-control"content="no-cache"><metahttp-equiv="expires"content="0"><metahttp-equiv="keywords"content="keyword1,keyword2,keyword3"><metahttp-equiv="description"content="Thisismypage"><!--<linkrel="stylesheet"type="text/css"href="styles.css">--><scripttype="text/javascript">functiondemo(){varb=true;vartwotxt=document.getElementById("twotxt");varstwotxt=document.getElementById("stwotxt");varmain2=parent.frames[1].document.getElementById("f2");if(twotxt.value.length==0){stwotxt.style.color="red";stwotxt.innerText="请输入二级标题";b=false;}else{stwotxt.innerText="";main2.innerHTML="<fontstyle='color:#00FF00'id='f2'onclick='demo2(this)'><u>二级标题及文件位置发布</u></font>";parent.frames[2].location.href="twosuccess.jsp";}returnb;}</script></head><body><formaction="twosuccess.jsp"method="post"submit="returndemo()"><center><h4>二级标题及文件位置发布</h4><br/><br/><br/><br/><table><tr><td>一级标题:</td><td><selectid="one"><option>金融热点</option><option>娱乐热点</option><option>体育热点</option></select></tr><tr><td>二级标题:</td><td><inputtype="text"id="twotxt"/><spanid="stwotxt"></span></td></tr><tr><td>文件位置:</td><td><inputtype="file"value="浏览"/></td></tr></table><br/><inputtype="submit"value="确定"/><inputtype="reset"value="重置"/><br/><br/>(二级标题最好与新闻稿件标题一致)<br/><br/><br/><b>注意:发布前请认真检查输入的标题是否正确</b></center></form></body></html>