Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ 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" %>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="ISO-8859-1">
- <title>Awesome to-do list</title>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
- <style>
- body {
- font-family: Lucida Console, Helvetica, sans-serif;
- }
- * {
- box-sizing: border-box;
- }
- /* style the container */
- .container {
- position: relative;
- border-radius: 5px;
- background-color: #f2f2f2;
- padding: 20px 0 30px 0;
- }
- /* style inputs and link buttons */
- input,
- .btn {
- width: 50%;
- padding: 12px;
- border: none;
- border-radius: 4px;
- margin: 5px 0;
- opacity: 0.85;
- display: inline-block;
- font-size: 17px;
- line-height: 20px;
- text-decoration: none; /* remove underline from anchors */
- font-family: Lucida Console, Helvetica, sans-serif;
- }
- input:hover,
- .btn:hover {
- opacity: 1;
- }
- select,
- .btn1 {
- width: 25%;
- padding: 12px;
- border: none;
- border-radius: 4px;
- margin: 5px 0;
- opacity: 0.85;
- display: inline-block;
- font-size: 17px;
- line-height: 20px;
- text-decoration: none; /* remove underline from anchors */
- }
- select:hover,
- .btn1:hover {
- opacity: 1;
- }
- /* style the submit button */
- input[type=button] {
- background-color: rgb(255, 102, 163);
- color: white;
- cursor: pointer;
- font-family: Lucida Console, Helvetica, sans-serif;
- }
- input[type=button]:hover {
- background-color: rgb(204, 0, 82);
- }
- /* Clear floats after the columns */
- .row:after {
- content: "";
- display: table;
- clear: both;
- }
- /* hide some text on medium and large screens */
- .hide-md-lg {
- display: none;
- }
- </style>
- </head>
- <body>
- <div class="container">
- <form action="">
- <div class="row">
- <h2 style="text-align:center; color: rgb(153, 0, 61);">Awesome To-Do List</h2>
- <div class="col" style="text-align:center;">
- <jsp:useBean id="taskbean" class="com.awesometodo.model.TaskBean" scope="session"/>
- <br>Task: <input type="text" size="40" value='<jsp:getProperty property="taskName" name="taskbean"/>'>
- <br>Due: <input type="text" value='<%=new java.util.Date() %>' placeholder="Due" required>
- <br>Priority::
- <select name="priority" style="font-family: Lucida Console, Helvetica, sans-serif;">
- <option value="Low" <c:if test="${taskbean.taskPriority == 'low'}">selected</c:if>>Low</option>
- <option value="Medium" <c:if test="${taskbean.taskPriority == 'Medium'}">selected</c:if>>Medium</option>
- <option value="High" <c:if test="${taskbean.taskPriority == 'High'}">selected</c:if>>High</option>
- </select>
- <p>
- <input type="button" class="Update1" value="update">
- </div>
- </div>
- </form>
- </div>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement