當前位置:首頁 » 課程大全 » jsp課程設計題庫

jsp課程設計題庫

發布時間: 2021-02-19 02:31:58

❶ 《JSP程序設計》期末考試試題A

so easy!

❷ 求jsp通用試題庫系統設計

已發出

❸ 誰有JSP在線試題庫系統源代碼

已發出

❹ 基於JSP的web題庫系統中的隨機抽取試題。資料庫用的my sql。

這里用到了兩個文件,一個jsp文件一個javabean文件,通過jsp中調用javabean可以輕松讀取文本文件,注意請放置一個文本文件afile.txt到web根目錄的test目錄下,javabean文件編譯後將class文件放到對應的class目錄下(tomcat環境)。

Read.jsp

$#@60;html$#@62;
$#@60;head$#@62;
$#@60;title$#@62;讀取一個文件$#@60;/title$#@62;
$#@60;/head$#@62;
$#@60;body bgcolor="#000000"$#@62;
$#@60;%--調用javabean --%$#@62;
$#@60;jsp:useBean id="reader" class="DelimitedDataFile" scope="request"$#@62;
$#@60;jsp:setProperty name="reader" property="path" value="/test/afile.txt" /$#@62;
$#@60;/jsp:useBean$#@62;

$#@60;h3$#@62;文件內容:$#@60;/h3$#@62;

$#@60;p$#@62;

$#@60;% int count = 0; %$#@62;
$#@60;% while (reader.nextRecord() != -1) { %$#@62;
$#@60;% count++; %$#@62;
$#@60;b$#@62;第$#@60;% out.print(count); %$#@62;行:$#@60;/b$#@62;
$#@60;% out.print(reader.returnRecord()); %$#@62;$#@60;br$#@62;
$#@60;% } %$#@62;
$#@60;/p$#@62;
$#@60;/body$#@62;
$#@60;/html$#@62;

//DelimitedDataFile.java bean文件源代碼
//導入java包
import java.io.*;
import java.util.StringTokenizer;

public class DelimitedDataFile
{

private String currentRecord = null;
private BufferedReader file;
private String path;
private StringTokenizer token;
//創建文件對象
public DelimitedDataFile()
{
file = new BufferedReader(new InputStreamReader(System.in),1);
}
public DelimitedDataFile(String filePath) throws FileNotFoundException
{

path = filePath;
file = new BufferedReader(new FileReader(path));
}
//設置文件路徑
public void setPath(String filePath)
{

ath = filePath;
try {
file = new BufferedReader(new
FileReader(path));
} catch (FileNotFoundException e) {
System.out.println("file not found");
}

}
//得到文件路徑
public String getPath() {
return path;
}
//關閉文件
public void fileClose() throws IOException
{

file.close();
}
//讀取下一行記錄,若沒有則返回-1
public int nextRecord()
{


int returnInt = -1;
try
{
currentRecord = file.readLine();
}

catch (IOException e)
{
System.out.println("readLine problem, terminating.");
}

if (currentRecord == null)
returnInt = -1;
else
{
token = new StringTokenizer(currentRecord);
returnInt = token.countTokens();
}
return returnInt;
}

//以字元串的形式返回整個記錄
public String returnRecord()
{

return currentRecord;
}
}

❺ 動態網頁設計(JSP)試題

B B C X D B X C

填空:
1.response
2.WEB-INF classes
3.BufferedReader PrintWriter
4.classes lib
5.網頁地址/hello 這實在要調用Servlet的地方寫HelloServlet
6.獲得服務期回IP
7.頁面跳轉

X的想不起答來了

❻ 畢業設計jsp 試題庫管理系統(詳細)

做開發這么多年,我就沒看懂你這句話到底是啥子意思

❼ 求一份JSP技術的題庫管理系統源代碼+MySQL資料庫

小夥子代碼寫少了。

熱點內容
武漢大學學生會輔導員寄語 發布:2021-03-16 21:44:16 瀏覽:612
七年級學生作文輔導學案 發布:2021-03-16 21:42:09 瀏覽:1
不屑弟高考成績 發布:2021-03-16 21:40:59 瀏覽:754
大學畢業證會有成績單 發布:2021-03-16 21:40:07 瀏覽:756
2017信陽學院輔導員招聘名單 發布:2021-03-16 21:40:02 瀏覽:800
查詢重慶2018中考成績查詢 發布:2021-03-16 21:39:58 瀏覽:21
結業考試成績怎麼查詢 發布:2021-03-16 21:28:40 瀏覽:679
14中醫醫師資格筆試考試成績查分 發布:2021-03-16 21:28:39 瀏覽:655
名著賞析課程標准 發布:2021-03-16 21:27:57 瀏覽:881
北京大學商業領袖高端培訓課程 發布:2021-03-16 21:27:41 瀏覽:919