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;
}
上一篇:JSP/Servlet应用程序优化八法 下一篇:JSP不是简化的Java
文章评论
共有位Admini5网友发表了评论 查看完整内容