焦点信息:
<%
ConfigFactory.initRoot(_blogSearcherConfig);
String savepath=_lookViewPath;//type!=null&&type.equals("1")?_hotViewPath:_lookViewPath;
//焦点信息
BufferedReader reader=FileManager.readFile(savepath,_encode);
if(reader==null){
FileMG.createFile(savepath);
reader=FileManager.readFile(savepath,_encode);
}
String line=null;
//Set
keys=new LinkedHashSet();
while(null!=reader&&null!=(line=reader.readLine())){
if(!"".equals(line)){
String id=line.replaceAll(" .*","");
String query=""+id+"";
Searcher searcher=JSPSearch.getSearch(query);
List beans=searcher.searchAsBean();
EjsBean bean=beans.get(0);
String s_title=line.replaceFirst("[^ ]+ ","");
s_title=s_title==null||"".equals(s_title)?bean.getValue("TITLE"):s_title;
String s_detail=bean.getValue("CONTENT");
String url=bean.getValue("URL");
String s_name=bean.getValue("SITENAME");
String s_getdate=bean.getValue("GETDATE");
//keys.add(line);%>
]*>","")%>"><%=s_title%> <%=s_name.replaceAll("_",".")%> <%=s_getdate.substring(0,4)%>-<%=s_getdate.substring(4,6)%>-<%=s_getdate.substring(6,8)%>
<% }
}
%>
热点信息:
<%
savepath=_hotViewPath;//type!=null&&type.equals("1")?_hotViewPath:_lookViewPath;
//热点
reader=FileManager.readFile(savepath,_encode);
if(reader==null){
FileMG.createFile(savepath);
reader=FileManager.readFile(savepath,_encode);
}
line=null;
//Set
keys=new LinkedHashSet();
while(null!=reader&&null!=(line=reader.readLine())){
if(!"".equals(line)){
String id=line.replaceAll(" .*","");
String query=""+id+"";
Searcher searcher=JSPSearch.getSearch(query);
List beans=searcher.searchAsBean();
EjsBean bean=beans.get(0);
String s_title=line.replaceFirst("[^ ]+ ","");
s_title=s_title==null||"".equals(s_title)?bean.getValue("TITLE"):s_title;
String s_detail=bean.getValue("CONTENT");
String url=bean.getValue("URL");
String s_name=bean.getValue("SITENAME");
String s_getdate=bean.getValue("GETDATE");
//keys.add(line);%>
]*>","")%>"><%=s_title%> <%=s_name.replaceAll("_",".")%> <%=s_getdate.substring(0,4)%>-<%=s_getdate.substring(4,6)%>-<%=s_getdate.substring(6,8)%>
<% }
}
%>