日期:2014-05-18 浏览次数:20648 次
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
response.setHeader("Pragma", "No-cache");
response.setDateHeader("Expires", -1);
response.setHeader("Cache-Control", "No-store");
String uid=null;
String uname = null;
String path = request.getRequestURI();
uid = "1";
/*try {
uid = (String) session.getAttribute("uid");
} catch (Exception e) {
}*/
try {
uname = (String) session.getAttribute("uname");
} catch (Exception e) {
}
if (uname == null)
response.sendRedirect("userlogin.jsp?jumppath="+path);
%>
<%
readlistdao bookmark = new readlistdao();
readlistinfo rli = new readlistinfo();
ArrayList<readlistinfo> bk = new ArrayList<readlistinfo>();
int flag = 1;
try {
bk = bookmark.findbookmark(uid);
if (bk.size() == 0) {
out.print("这个用户bookmark表里面没东西");
flag = 0;
}
} catch (IndexOutOfBoundsException e) {
System.out.println("arraylist打开异常");
e.printStackTrace();
}
%>