jsp - How to loop the value stored in session? -
sorry interrupt of you. i have question session. in case, need check session has stored value or not. if session not null, want loop value comparison. now, use if statement check last record of book id repetitive or not. but don't know how use loop check there book id repetitive or not. would 1 provide advice me acheive goal? many thanks. here source code: <%@ page contenttype="text/html; charset=big5"%> <%@ page import="java.io.*" %> <%@ page import="java.sql.*" %> <%@ page import ="javax.sql.*" %> <%@ page import="java.util.*" %> <%@ page import="java.lang.*"%> <%! public class bookinfo { private string id; private string name; private int count; public bookinfo(string id, string name, int count) { this.id = id; this.name = name; this.count = count; } public string ...