alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  
</tr> <% String user = request.getRemoteUser(); if ( user != null ) { %> <tr class="trow1"> <td align="center" colspan="2"> You are logged in Realm as user "<b><%=user%>".
You want to log in again with new account ? </td> </tr> <% } %> <tr class="trow2"> <td>Username: <td> </tr> <tr class="trow1"> <td>Password: <td> </tr> <tr class="trowfinal"> <td colspan="2" align="center"> <input type="submit" value="Log In" class="mainoption">  <input type="reset">
<% if (request.getRemoteUser() == null) { %> <a href="<%=request.getContextPath()%>" class="command">Enter MVNForum without login (I will login later) <% } else { %> <a href="<%=request.getContextPath()%>" class="command">Enter MVNForum <% } %> </td> </tr> </table> </td> </tr> </table> </form> </body> </html>

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

<html>
<head>
  <title>MVNForum Demo Single Sign On, Realm - Login
  <link href="<%=response.encodeURL(request.getContextPath() + "/mvnplugin/mvnforum/css/style.css")%>" rel="stylesheet" type="text/css">
</head>
<body>
<form method="POST" action='<%= response.encodeURL("j_security_check") %>' >
<table width="100%" height="100%">
  <tr>
    <td>
      <table width="70%" class="tborder" cellspacing="1" cellpadding="3" align="center" valign="center">
        <tr>
          <td class="theader" colspan="2" align="left">MVNForum Demo Single Sign On, Realm - Login
... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 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.