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

📄 index.jsp

📁 免费的java企业级论坛可执行程序
💻 JSP
字号:
<%@ page import="com.mvnforum.auth.*" %>
<%
if (request.getParameter("logoff") != null) {
  OnlineUserManager.getInstance().logout(request, response);
  session.invalidate();
  System.out.println(session);
  response.sendRedirect("index.jsp");
  return;
}
%>
<html>
<head>
  <title>MVNForum Demo Single Sign On, Realm - Welcome Message</title>
  <link href="<%=response.encodeURL(request.getContextPath() + "/mvnplugin/mvnforum/css/style.css")%>" rel="stylesheet" type="text/css">
</head>
<body>
<table width="100%" height="100%">
  <tr>
    <td>
      <table width="70%" class="tborder" cellspacing="1"  cellpadding="3" align="center" valign="center">
        <tr>
          <td class="theader" align="center">Demo Single Sign On, Realm - Welcome</>
        </>
        <tr>
          <td class="trow1" align="center">
          <% String user = request.getRemoteUser();
             if ( user != null ) { %>
              You are logged in Realm as remote user <b><%= request.getRemoteUser() %></b><br/>
              From here, you can access any pages belongs to MVNForum without any password more<br/>
              These is web-based applications belong to system you can access. Have fun!!
              <br/>
              <a class="command" href="<%= response.encodeURL(request.getContextPath()) %>">Enter MVNForum</a>&nbsp;&nbsp;&nbsp;
              <a class="command" href="<%= response.encodeURL("index.jsp?logoff=true")%>">Logout</a>
          <% } else { %>
              You are viewing this page with a Realm user is null. It is very likely
              that you have not config Realm correctly in the web.xml
          <% } %>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>

⌨️ 快捷键说明

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