jsp只在首次加载时调用action实现代码


复制代码 代码如下:

<%
List<Class> list=(List)request.getAttribute("classlist");
if(list==null){
response.sendRedirect("class.do?method=doShow");
}
%>

class.do是action名称。
« 
» 
快速导航

Copyright © 2016 phpStudy | 豫ICP备2021030365号-3