类:ActionContext.getContext().getSession().put("ID", ID);前台:js:var tID = document.getElementById("ID").value;