JSP页面初始化时获取后台数据

2026-02-12 21:45:48

1、在你的JSP页面中加入以下代码(根据实际情况的不同,有所区别,以下为例子):

<%  if (request.getAttribute("hospitalEntitys") == null ) {%><jsp:forward page="actionServlet?actionCode=hospital&methodCode=login" ></jsp:forward><%   }%>

猜你喜欢