📄 look.jsp
字号:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.io.*" errorPage="" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>查看</title>
</head>
<body>
<p> <br>
</p>
<table width="100%" height="100%" border="1">
<tr>
<td height="48" bgcolor="#00CCFF"><div align="center">
<h1>资源信息列表</h1>
</div></td>
</tr>
<tr>
<td height="89"> <p align="left">
<%
try{
String address = application.getRealPath("sourceofteach");
RandomAccessFile ct = new RandomAccessFile(address+"/"+"content.txt","rw");
int i=0;
String record = new String();
while((record = ct.readLine()) != null){
i++;
out.println(i+"--"+new String(record.getBytes("8859_1"))+"<br>");
}
ct.close();
}catch(Exception e){}
%>
</p></td>
</tr>
<tr>
<td height="30"><div align="center">如有修改请及时按<strong>F5</strong>刷新页面 <br>
<input name="button" type="button" onClick="javascript:window.close();" value="关闭"></div></td>
</tr>
</table>
<p> </p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -