This Domain(Admin5.com) is for Sale:

JSP中的全文检索

时间:2007-10-22  来源:不详  作者:林子

try {

//检索所有的新闻

mSql="select * from t_news_detail order by release_time desc";

result=DbaObj.ExecuteQuery(mSql);

while(result.next())

{

String id=result.getString("id");

String title=result.getString("title");

String release_time=result.getString("release_time");

String news_type=result.getString("type");

String content=result.getString("content");

String man_add=result.getString("man_add");

//按行读文件

String trace=filePath content ".html";

FileReader myFileReader=new FileReader(trace);

BufferedReader myBufferedReader=new BufferedReader(myFileReader);

String myString=null;

String resultString=new String();

while((myString=myBufferedReader.readLine())!=null)

{

resultString=resultString myString;

}

看完这篇,您有何感觉呢?

文章评论

共有位Admini5网友发表了评论 查看完整内容

24小时热门信息