⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 home.jsp

📁 RESIN 3.2 最新源码
💻 JSP
字号:
<%@ taglib prefix='c' uri='http://java.sun.com/jsp/jstl/core' %><%@ include file="/inc/nobrowsercache.jspf" %><%--  Some types of users have customized home pages.  This jsp determines which type of user is making a request, and  redirects the user's browser to the appropriate home.    If a customized home page does not exist for this kind of user,  then this page is used.--%><%  /** redirect to a more specific homepage if one is available */  String home_url = null;  if (request.isUserInRole("professor")) {      home_url = "professors/";  } else if (request.isUserInRole("staff")) {      home_url = "staff/";  } else if (request.isUserInRole("student")) {      home_url = "students/";  }  if (home_url != null) {      home_url = response.encodeRedirectUrl(home_url);      response.sendRedirect(home_url);      return; // don't do any more of the page  }%><html>  <head>    <title>Hogwart's::Home</title>  </head>  <body>    <%@ include file="/inc/buttonbar.jspf" %>    <h1>Home</h1>    Welcome <c:out value="${pageContext.request.remoteUser}"/>.    You are not a professor, a member of staff, or a student.    <%@ include file="/inc/footer.jspf" %>  </body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -