-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcreate.jsp
68 lines (53 loc) · 1.7 KB
/
create.jsp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<c:set var="context" value="${pageContext.request.contextPath}" scope="request"/>
<link rel="stylesheet" href="${context}/resources/css/main.css"/>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>CREATE</title>
<script src="${context}/resources/bower_components/tinymce/tinymce.min.js"></script>
<script>
$(function(){
tinymce.init({
selector:'textarea',
height : "300"
});
})
</script>
</head>
<body>
<h2 class="mt-5 mb-4"> POSTING </h2>
<form:form commandName="plan" enctype="multipart/form-data">
<input type="hidden" name="writer" value="${USER.userId}"/>
<div class="md-form">
<label> Title</label>
<form:input path="title" class="form-control"/>
<form:errors path="title"/>
</div>
<div class="mb-3">
<label>WRITER : ${USER.userId}</label>
</div>
<div class="md-form">
<label>PW</label>
<form:password path="password" class="form-control"/>
<form:errors path="password"/>
</div>
<div>
<label> FILE </label>
<input type="file" name="files" multiple="multiple">
</div>
<form:textarea path="content"/>
<div class="text-center mt-3">
<button type="submit" class="btn btn-unique btn-md">
<i class="fas fa-check mr-2"></i> CHECH</button>
<a href="list" class="btn btn-unique btn-md">
<i class="fas fa-undo mr-2"></i> BACK</a>
</div>
</form:form>
</body>
</html>