본문으로 바로가기

Model 1 간략한 게시판 만들기(write.js)

category JAVA 2019. 5. 21. 14:33
반응형

Model 1 (기초)간략게시판 만들기.. 

기본적으로 오라클 DB와 연동해서 진행을 하였으며,

DB 테이블 구성은 게시판번호, 제목, 글쓴이, 시간, 내용 입니다.

 

JDK 1.8 버전

Ojdbc7 버전

 

 

Write.jsp 역할 

- 사용자에게 보여지는 글을 쓸 수 있는 부분

- 원하는 항목에 입력한 후 submit을 누르면 writepro.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
<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">
<title>Insert title here</title>
</head>
<body>
<h1>글쓰기</h1>
<table border="1">
<form action="writepro.jsp" method="post"> 
<tr>
<td>제목<input type="text" name="title"></td><br/>
</tr>
<tr>
<td>글쓴이<input type="text" name="writer"></td><br/>
</tr>
<tr>
<td>내용<input type="text" name="content"></td><br/>
</tr>
<td><input type="submit"></td>
 
 
</form>
 
</table>
</body>
</html>
http://colorscripter.com/info#e" target="_blank" style="color:#4f4f4f; text-decoration:none">Colored by Color Scripter
http://colorscripter.com/info#e" target="_blank" style="text-decoration:none; color:white">cs

 

참고 블로그 - cocy님의 블로그 https://cusmaker.tistory.com/83

반응형