View File | Revision Log | Show Annotations | Download File | View Changeset
/hippo/hippo-collab/trunk/site/src/main/webapp/WEB-INF/jsp/login.jsp
(Generate patch)

Comparing:
hippo-collab/trunk/site/src/main/webapp/login.jsp (file contents), Revision 23098 by wko, Thu Jun 10 16:11:13 2010 UTC vs.
hippo-collab/trunk/site/src/main/webapp/WEB-INF/jsp/login.jsp (file contents), Revision 23113 by wko, Fri Jun 11 15:38:24 2010 UTC

10 Unless required by applicable law or agreed to in writing, software 10 Unless required by applicable law or agreed to in writing, software
11 distributed under the License is distributed on an "AS IS" 11 distributed under the License is distributed on an "AS IS"
12 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 See the License for the specific language governing permissions and 13 See the License for the specific language governing permissions and
14 limitations under the License. --%> 14 limitations under the License. --%>
15
16<%@ page language="java"%> 15<%@ page language="java" session="true"%>
17<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%> 16<%@page import="java.net.URLEncoder"%>
18<%@ taglib uri="http://java.sun.com/jsp/jstl/xml" prefix="x"%> 17<%
19<%@ taglib uri="http://www.hippoecm.org/jsp/hst/core" prefix='hst'%> 18String username = (String) session.getAttribute("j_username");
20<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%> 19if (username == null) username = "";
21<div> 20String password = (String) session.getAttribute("j_password");
22<h2>Login page</h2> 21if (password == null) password = "";
23<form method="post" action="<c:url value="/login/proxy"/>"> 22%>
24<table> 23<html>
25 <tr> 24<body onLoad='document.forms["login"].submit();'>
26 <td>Login</td> 25<form id='login' method='POST' action='<%=response.encodeURL("j_security_check")%>'>
27 <td><input type="text" name="j_username"/></td> 26<input type='hidden' name='j_username' value='<%=username%>' />
28 </tr> 27<input type='hidden' name='j_password' value='<%=password%>' />
29 <tr> 28<noscript><input type='submit' value="login" /></noscript>
30 <td>Password</td>
31 <td><input type="password" name="j_password"/></td>
32 </tr>
33 <tr>
34 <td colspan="2" ><input type="submit" value="login"/></td>
35 </tr>
36</table>
37</form> 29</form>
38</div> 30</body>
39 31</html>

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines