Author: thomas.heute(a)jboss.com
Date: 2007-03-05 12:04:16 -0500 (Mon, 05 Mar 2007)
New Revision: 6542
Modified:
trunk/core/src/resources/portal-server-war/error.jsp
Log:
Slightly better login error page (Copy/paste from login + error message)
This still need to be i18n
Modified: trunk/core/src/resources/portal-server-war/error.jsp
===================================================================
--- trunk/core/src/resources/portal-server-war/error.jsp 2007-03-05 16:29:15 UTC (rev
6541)
+++ trunk/core/src/resources/portal-server-war/error.jsp 2007-03-05 17:04:16 UTC (rev
6542)
@@ -23,38 +23,84 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
<html>
<head>
+ <style>
+ body {
+ background-color: #FFFFFF;
+ }
+ td {
+ color: #000000;
+ font-family: verdana, arial, sans-serif;
+ font-size: 12px;
+ line-height: 130%;
+ }
+ </style>
</head>
-<body id="body">
-<div id="portal-container">
- <div id="sizer">
- <div id="expander">
- <div id="logoName"></div>
- <table border="0" cellpadding="0"
cellspacing="0" id="header-container">
- <tr>
- <td align="center" valign="top"
id="header">
- <div id="spacer"></div>
- </td>
- </tr>
- </table>
- <div id="content-container">
+<body OnLoad="document.loginform.j_username.focus();">
- <div id="login-container">
- <b>Login Failed!</b>
- <br/>
- Sorry, your username and/or password could not be verified.
- </div>
- <hr class="cleaner"/>
+<table width="100%" height="600" cellpadding="0"
cellspacing="1" >
+ <tr>
+ <td valign="middle" align="center">
+ <form method="POST" action="<%=
response.encodeURL("j_security_check") %>" name="loginform"
id="loginForm">
- <div id="footer-container"
class="portal-copyright">Powered by <a class="portal-copyright"
-
href="http://www.jboss.com/products/jbossportal">JBoss
- Portal</a><br/>
- </div>
- </div>
- </div>
- </div>
-</div>
+ <% String prefix = request.getContextPath(); %>
+
+ <table cellspacing="0" cellpadding="0">
+ <tr>
+ <td ><img src="<%= prefix %>/images/login_top_left.png"
/></td>
+ <td style="background-image:url('<%= prefix
%>/images/login_top.png')"></td>
+ <td><img src="<%= prefix %>/images/login_top_right.png"
/></td>
+ </tr>
+ <tr>
+ <td style="background-image:url('<%= prefix
%>/images/login_left.png')"></td>
+ <!-- REAL CONTENT CELL : begin -->
+ <td style="background-color:#b4b4b4" align="center">
+ <b>JBoss Portal Login</b><br/><br/>
+ <p style="color:red">Login failed !</p>
+ <table>
+ <tr>
+ <td align="right" width="50">
+ Username:
+ </td>
+ <td align="left">
+ <input type="text" name="j_username"
value=""/>
+ </td>
+ </tr>
+ <tr>
+ <td align="right" width="50">
+ Password:
+ </td>
+ <td align="left">
+ <input type="password" name="j_password"
value=""/>
+ </td>
+ </tr>
+ <tr>
+ <td colspan="2" align="right">
+ <input type="submit" name="login"
value="Login"/>
+ </td>
+ </tr>
+ </table>
+
+ </td>
+ <!-- REAL CONTENT CELL : end -->
+ <td style="background-image:url('<%= prefix
%>/images/login_right.png')"></td>
+ </tr>
+ <tr>
+ <td><img src="<%= prefix %>/images/login_bottom_left.png"
/></td>
+ <td style="background-image:url('<%= prefix
%>/images/login_bottom.png')"></td>
+ <td><img src="<%= prefix %>/images/login_bottom_right.png"
/></td>
+ </tr>
+ </table>
+
+
+ </form>
+
+ </td>
+ </tr>
+</table>
+
</body>
</html>