JSP页面初始化时获取后台数据
1、在你的JSP页面中加入以下代码(根据实际情况的不同,有所区别,以下为例子):
<% if (request.getAttribute("hospitalEntitys") == null ) {%><jsp:forward page="actionServlet?actionCode=hospital&methodCode=login" ></jsp:forward><% }%>
阅读量:100
阅读量:25
阅读量:48
阅读量:49
阅读量:168
1、在你的JSP页面中加入以下代码(根据实际情况的不同,有所区别,以下为例子):
<% if (request.getAttribute("hospitalEntitys") == null ) {%><jsp:forward page="actionServlet?actionCode=hospital&methodCode=login" ></jsp:forward><% }%>