请任何人帮助我了解如何在触发请求参数时防止 JSP 页面刷新。下面是我的代码行:
String action = request.getParameter("cmd");
if (action == null) {
System.out.println("You are here2");
action = "";
}
else if(action.equalsIgnoreCase("examSelected")){
System.out.println("The Exam ID of the Long value is " + ExamId);
ArrayList<Subject> subjectName = new ArrayList<Subject>();
我希望当动作在examSelected 上时,让JSP 页面不刷新。感谢回应。