?? ch3-5b.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.sql.*" errorPage="" %>
<html>
<title>取得application 中的數據</title>
<style type="text/css">.STYLE1 {
font-family: "楷體_GB2312"; font-weight: bold; font-size: large; color: #0000FF;}
body {
background-color: #FFFFCC;
}
</style>
<body>
<%@page import="java.util.*"%>
<%!
String tp,xw1,xw2,xw3,bt1,bt2,bt3,btimg,new1,new2,new3;
%>
<%
tp=(String)application.getAttribute("dirimg");
bt1=(String)application.getAttribute("bt1");
bt2=(String)application.getAttribute("bt2");
bt3=(String)application.getAttribute("bt3");
xw1=(String)application.getAttribute("dirtext1");
xw2=(String)application.getAttribute("dirtext2");
xw3=(String)application.getAttribute("dirtext3");
if(tp==null)
tp="1.jpg";
if(bt1==null)
bt1="新聞一";
if(bt2==null)
bt2="新聞二";
if(bt3==null)
bt3="新聞三";
if(xw1==null)
xw1="newc1.htm";
if(xw2==null)
xw2="newc2.htm";
if(xw3==null)
xw3="newc3.htm";
btimg="img/"+tp;
new1="new/"+xw1;
new2="new/"+xw2;
new3="new/"+xw3;
%>
<table width="771" height="514" border="1">
<tr>
<td height="113" colspan="4"><img src="<%=btimg%>" width="764" height="114"></td>
</tr>
<tr>
<td width="151" height="42"><div align="center" class="STYLE1">新聞</div></td>
<td width="604" colspan="3" rowspan="3"> </td>
</tr>
<tr>
<td valign="top"><p>1.<a href="<%=new1%>" target="_blank"><%=bt1%></a></p>
<p>2.<a href="<%=new2%>" target="_blank"><%=bt2%></a></p>
<p>3.<a href="<%=new3%>" target="_blank"><%=bt3%></a></p></td>
</tr>
<tr>
<td align="center" valign="middle"><a href="ch3-5a.htm">更新管理</a></td>
</tr>
</table>
<p align="center"> </p>
</body>
</html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -