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