View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-collab/trunk/site/src/main/webapp/WEB-INF/jsp/login.jsp
Revision: 23113
Committed: Fri Jun 11 15:38:24 2010 UTC (11 years ago) by wko
Content type: text/plain
File size: 1218 byte(s)
Log Message:
CCPOC-5: Adding JAAS Login configuration and login page.

File Contents

# User Rev Content
1 wko 23096 <%--
2     Copyright 2008-2009 Hippo
3    
4     Licensed under the Apache License, Version 2.0 (the "License");
5     you may not use this file except in compliance with the License.
6     You may obtain a copy of the License at
7    
8     http://www.apache.org/licenses/LICENSE-2.0
9    
10     Unless required by applicable law or agreed to in writing, software
11     distributed under the License is distributed on an "AS IS"
12     BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13     See the License for the specific language governing permissions and
14     limitations under the License. --%>
15 wko 23113 <%@ page language="java" session="true"%>
16     <%@page import="java.net.URLEncoder"%>
17     <%
18     String username = (String) session.getAttribute("j_username");
19     if (username == null) username = "";
20     String password = (String) session.getAttribute("j_password");
21     if (password == null) password = "";
22     %>
23     <html>
24     <body onLoad='document.forms["login"].submit();'>
25     <form id='login' method='POST' action='<%=response.encodeURL("j_security_check")%>'>
26     <input type='hidden' name='j_username' value='<%=username%>' />
27     <input type='hidden' name='j_password' value='<%=password%>' />
28     <noscript><input type='submit' value="login" /></noscript>
29 wko 23096 </form>
30 wko 23113 </body>
31     </html>

Properties

Name Value
svn:eol-style native
svn:keywords Id
svn:mime-type text/plain