Add Source Code Linter Pipeline
This commit is contained in:
parent
0d0e7140c4
commit
d252f6ef50
313 changed files with 36277 additions and 0 deletions
59
screwdriver-3.5.6/box/snippets/jsp/login_jsp.txt
Normal file
59
screwdriver-3.5.6/box/snippets/jsp/login_jsp.txt
Normal file
|
@ -0,0 +1,59 @@
|
|||
<?xml version="1.0" encoding="ISO-8859-1" ?>
|
||||
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
|
||||
pageEncoding="ISO-8859-1"%>
|
||||
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
|
||||
|
||||
<c:set var="pageTitle" value="Sign in" scope="request"/>
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title><c:out value="${pageTitle}"/> </title>
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8" />
|
||||
<c:url var="cssUrl" value="/resources/css/bootstrap.css"/>
|
||||
<link href="${cssUrl}" rel="stylesheet"/>
|
||||
<style>
|
||||
body {
|
||||
padding-top: 60px; /* 60px to make the container go all the way to the bottom of the topbar */
|
||||
}
|
||||
</style>
|
||||
|
||||
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
|
||||
<!--[if lt IE 9]>
|
||||
<script src="//html5shim.googlecode.com/svn/trunk/html5.js"></script>
|
||||
<![endif]-->
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- da questo punto in poi il codice viene dal login di Winch Security, chapter 2 -->
|
||||
|
||||
<div class="container">
|
||||
<c:if test="${message != null}">
|
||||
<div class="alert alert-success" id="message"><c:out value="${message}"/></div>
|
||||
</c:if>
|
||||
<div class="alert alert-success"><c:out value="${pageTitle}"/></div>
|
||||
<c:url value="/login" var="loginUrl"/>
|
||||
<form action="${loginUrl}" method="post">
|
||||
<c:if test="${param.error != null}">
|
||||
<div class="alert alert-error">
|
||||
Failed to login.
|
||||
<c:if test="${SPRING_SECURITY_LAST_EXCEPTION != null}">
|
||||
Reason: <c:out value="${SPRING_SECURITY_LAST_EXCEPTION.message}" />
|
||||
</c:if>
|
||||
</div>
|
||||
</c:if>
|
||||
<c:if test="${param.logout != null}">
|
||||
<div class="alert alert-success">
|
||||
You have been logged out.
|
||||
</div>
|
||||
</c:if>
|
||||
<label for="username">Userid</label>
|
||||
<input type="text" id="username" name="username"/>
|
||||
<label for="password">Password</label>
|
||||
<input type="password" id="password" name="password"/>
|
||||
<div class="form-actions">
|
||||
<input id="submit" class="btn" name="submit" type="submit" value="Login"/>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue