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