Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

login.jsp

By: a guest on Dec 1st, 2012  |  syntax: HTML 5  |  size: 2.26 KB  |  hits: 419  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  2.         pageEncoding="ISO-8859-1"%>
  3. <!DOCTYPE HTML>
  4. <%@ taglib prefix='c' uri='http://java.sun.com/jstl/core_rt'%>
  5. <html xmlns:spring="http://www.springframework.org/tags">
  6.  
  7. <head>
  8. <meta charset="utf-8">
  9. <title>Sign in &middot; Knowledge Testing System</title>
  10. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  11. <meta name="description" content="">
  12. <meta name="author" content="">
  13.  
  14. <!-- Le styles -->
  15. <link href="../bootstrap/css/bootstrap.css" rel="stylesheet">
  16. <style type="text/css">
  17. body {
  18.         padding-top: 40px;
  19.         padding-bottom: 40px;
  20.         background-color: #f5f5f5;
  21. }
  22.  
  23. .form-signin {
  24.         max-width: 300px;
  25.         padding: 19px 29px 29px;
  26.         margin: 0 auto 20px;
  27.         background-color: #fff;
  28.         border: 1px solid #e5e5e5;
  29.         -webkit-border-radius: 5px;
  30.         -moz-border-radius: 5px;
  31.         border-radius: 5px;
  32.         -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  33.         -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  34.         box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  35. }
  36.  
  37. .form-signin .form-signin-heading,.form-signin .checkbox {
  38.         margin-bottom: 10px;
  39. }
  40.  
  41. .form-signin input[type="text"],.form-signin input[type="password"] {
  42.         font-size: 16px;
  43.         height: auto;
  44.         margin-bottom: 15px;
  45.         padding: 7px 9px;
  46. }
  47. </style>
  48. <link href="../bootstrap/css/bootstrap-responsive.css" rel="stylesheet">
  49.  
  50. </head>
  51. <body>
  52.         <div class="container">
  53.  
  54.                 <form class="form-signin"
  55.                         action="<c:url value='j_spring_security_check'/>" method="POST"
  56.                         accept-charset="UTF-8">
  57.                         <h2 class="form-signin-heading">Please sign in</h2>
  58.                         <input type="text" class="input-block-level" name='j_username'
  59.                                 placeholder="Login"> <input type="password"
  60.                                 class="input-block-level" name='j_password' placeholder="Password">
  61.                         <!-- <label class="checkbox">
  62.          <input type="checkbox" value="remember-me"> Remember me
  63.        </label>  -->
  64.                         <button class="btn btn-large btn-primary" type="submit">Sign
  65.                                 in</button>
  66.                         <!-- name="submit" -->
  67.                 </form>
  68.  
  69.         </div>
  70.  
  71.         <!-- Le javascript
  72.    ================================================== -->
  73.         <!-- Placed at the end of the document so the pages load faster -->
  74.         <script src="../js/jquery-1.8.3.js"></script>
  75.         <script src="../bootstrap/js/bootstrap.js"></script>
  76. </body>
  77. </html>