home | career | drupal | java | mac | mysql | perl | scala | uml | unix  

What this is

This file is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Other links

The source code

<%@ 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
  <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() %>
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 class="command" href="<%= response.encodeURL("index.jsp?logoff=true")%>">Logout <% } 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>


my book on functional programming

 

new blog posts

 

Copyright 1998-2019 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.