상세 컨텐츠

본문 제목

jsp 답변형 게시판, 오라클 사용, 막코딩..form 부분

관리X 과거글

by 까먹기전에 2015. 2. 17. 17:21

본문

반응형







========================Form======================


<%@ page language="java" contentType="text/html; charset=EUC-KR"

pageEncoding="EUC-KR"%>

<jsp:useBean id="dao" class="board.MemberDAO" />

<jsp:useBean id="vo" class="board.MemberVO" />

<%@ page import="java.sql.*"%>


<%


String gle="";

String g = (String)request.getParameter("mygle");


if(g==null){

gle="../action/gleAction.jsp";

}

else if(g!=null){

gle=g;

}

%>


<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">


<html>

<head>

<style type="text/css">

.title {

border: 2px solid #BDBDBD;

background-color: #EAEAEA;

border-collapse: collapse;

border-right-color: #BDBDBD;

border-left-color: #BDBDBD;

background-color: #EAEAEA;

}


#div {

border: 2px solid #BDBDBD;

border-collapse: collapse;

border-collapse: collapse;

width: 100%;

height: 100%;

}


.no {

width: 1%;

text-align: center;

border-right-color: #BDBDBD;

}


.je {

width: 8%;

text-align: left;

border-right-color: #BDBDBD;

}


.writer {

width: 1%;

text-align: center;

border-right-color: #BDBDBD;

}


.writedate {

width: 1.5%;

text-align: center;

border-right-color: red;

}


.count {

width: 1%;

text-align: center;

border-right-color: #BDBDBD;

}


td {

border-bottom-color: #BDBDBD;

}

</style>

<link href="../boardFormstyle/board.css" rel="stylesheet"

type="text/css" />





<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<title>게시판</title>

</head>


<body>

<form method="post">

<script type="text/javascript">


function relo(){

location.href="BoardForm.jsp?mygle=../action/gleAction.jsp";

}

function aa(){

location.href="writeForm.jsp";

}

function preview(){

}

function nextview(){

}

function mygle(){

location.href="../action/mygleAction.jsp";

}

</script>

</form>

</body>

<body>


<table>

<tr>

<center>

<img src="../image/잡담게시판.png" width="40%" height="10%"

onclick="relo()" style="cursor: pointer;">


</center>

<% 

if(session.getAttribute("login1")!=null){

out.println(session.getAttribute("login1")+"님 환영해욧!:)");

}else{

response.sendRedirect("LoginForm.jsp");}

%>

</tr>

</table>

<img src="../image/내가쓴글.png" width="10%" height="5%" onclick="mygle()" style="cursor: pointer; ">

<div id="div">

<table>

<tr>

<td class="title" width="1%" align="center">NO</td>

<td class="title" width="8%" align="center">제목</td>

<td class="title" width="1%" align="center">작성자</td>

<td class="title" width="1.5%" align="center">작성일</td>

<td class="title" width="1%" align="center">조회수</td>

</tr>

<jsp:include page="<%=gle%>"></jsp:include>

</table>

</div>

<img src="../image/이전페이지.png" width="10%" height="5%" style="cursor: pointer; position: relative; left: 40.25%; bottom: 1%;"

onclick="preview()">

<img src="../image/다음페이지.png" width="10%" height="5%" style="cursor: pointer; position: relative; left: 40.25%; bottom: 1%;"

onclick="nextview()">

<img src="../image/글쓰기.png" width="10%" height="5%"

style="cursor: pointer; position: relative; left: 70%; bottom: 1%;"

onclick="aa()">


</body>

</html>

========================================================================

<%@ 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>아이디찾기</title>

</head>

<body>

<form action="../action/findidAction.jsp" method="post">

가입시 입력한 이름 입력 : <input type="text" name="findid">

<input type="submit" value="아이디찾아줘">

</form>

</body>

</html>

========================================================================


<%@ 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>

<form action="../action/findpwAction.jsp" method="post">

비번찾을아이디입력:<input type="text" name="findpw">

이메일주소입력:<input type="text" name="findpw2">

<input type="submit" value="비번찾아줘">

</form>

</body>

</html>

=========================================================================

<%@ 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">

<%

String id=request.getParameter("thisid");

if(id!=null){

}

%>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<title>회원가입 하는곳</title>

</head>

<body>

<script type="text/javascript">

function join(){

document.form.submit();

}

function can(){

location.href="LoginForm.jsp";

}

function idck(){

alert("먼저 중복체크를 하삼..");

}

function pwck(){

var pass1=document.form.joinpw.value;

var pass2=document.form.joinpw1.value;

if(pass1.length==0||pass1==null||pass2.length==0||pass2==null){

alert("비밀번호 안필요해요?");

}

else if(pass1!=pass2){

alert("비밀번호가 서로 달라요...ㅡ,.ㅡ;;");

}

else if(pass1==pass2){

alert("비밀번호 잘 외우세요!! 아뒤,비번찾기 아직 못맹금 ㅠㅠ");

}

}

function idjung(){

var url="jungForm.jsp";

window.open(url, "get", "height = 180, width = 300");

}

</script>

<center>

<form action="../action/JoinAction.jsp" name="form" method="post">

<table>

<tr>

<td colspan="2"><h1><font size="20">회 원 가 입</font></h1></td>

</tr>

<tr>

<td>아뒤</td>

<td><input type="text" onmouseover="idck()" name="joinid" maxlength="1000000000005">

</td> <td><img src="../image/idchk.png" width="80" height="70" onclick="idjung()"></td>

<tr>

<td>비번</td>

<td><input type="password" name="joinpw" maxlength="15"></td>

<tr>

<td>비번확인</td>

<td><input type="password" onblur="pwck()" name="joinpw1" ></td>

<tr>

<td>이름</td>

<td><input type="text" name="joinaddr"></td>

<tr>

<td>전번</td>

<td><input type="text" name="jointel"></td>

<tr>

<td>e메일</td>

<td><input type="text" name="joinemail"></td>

<tr>

<td>

<img src="../image/회원가입.png" width="80" height="50" onclick="join()">

</td>

<td>

<img src="../image/취소.png" width="80" height="50" onclick="can()">

</td>


</table>

</form>

</center>


</body>

</html>

=====================================================================================================

<%@ 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>중복체크</title>

</head>

<body>

<form action="../action/checkAction.jsp" method="post">

<input type="text" name="id"><input type="submit" value="검색">

</form>

</body>

</html>

=======================================================================================================

<%@ 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>

<script>

function login(){

document.form.submit();

}

function join(){

location.href = "JoinForm.jsp";

}

function findid(){

var url="findidForm.jsp";

window.open(url, "get", "height = 180, width = 300");

}

function findpw(){

var url="findpwForm.jsp";

window.open(url, "get", "height = 180, width = 300");

}

</script>

<%

request.setCharacterEncoding("euc-kr");

request.setAttribute("gle", "../action/gleAction.jsp");

%>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<title>게시판</title>

</head>

<body>

<center>

<h1>

<font color="blue"> 게 시 판 </font>

</h1>

<br>

<hr>

<br>

<br>


<form  action="../action/loginAction.jsp" name="form" method="post">

<font size="5">ID :</font>  <input type="text" name="id"> <br>

<font size="5"> PW :</font> <input type="password" name="pw"> <br>

&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp&nbsp 

<img src="../image/loginbutton.png" align="middle" width="80px"

height="70px" onclick="login()" style="cursor:pointer"> 

<img src="../image/회원가입.png"

align="middle" width="80px" height="70px" onclick="join()" style="cursor:pointer"> <br>

<img src="../image/아이디몰라.png"

align="middle" width="130px" height="90px" onclick="findid()" style="cursor:pointer">

<img src="../image/비밀번호몰라.png"

align="middle" width="90px" height="80px" onclick="findpw()" style="cursor:pointer">

<br><br>

<br><br>

<h1>

<font color="red">버그제보 , 건의사항 많이 올려주세요^^</font>

</h1>

</form>

</center>


</body>

</html>

======================================================================================================

<%@page import="java.util.*"%>

<%@page language="java" contentType="text/html; charset=EUC-KR"

    pageEncoding="EUC-KR"%>

<%@page import="board.*" %>

<jsp:useBean id="dao" class="board.MemberDAO" />

<jsp:useBean id="vo" class="board.MemberVO" />

<!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">


<% 

request.setCharacterEncoding("euc-kr");

ArrayList<MemberVO> memlist =(ArrayList<MemberVO>)session.getAttribute("bolglecom");

MemberVO mem =(MemberVO)session.getAttribute("bolgle");

String id = mem.getId();

String je = mem.getJe();

String na = mem.getNa();

String date = mem.getWritedate();

String seq=mem.getSeq();

String comid=mem.getComid();

String comna =mem.getComna();

String comdate=mem.getComdate();


%>

<title><%=je%></title>

<style type="text/css">

.test{

border: 2px solid;

border-color: red;

}

.idd{

border: 2px solid;

border-color: #BDBDBD;

}

.comment{

border: 2px solid;

border-color: #BDBDBD;


}

.date{

border: 2px solid;

border-color: #BDBDBD;

}

.je{

width: 10%;

border: 2px solid;

border-color: #BDBDBD

}

.id{

width: 3%;

border: 2px solid;

border-color: #BDBDBD;

}


.date{

width : 5%;

border: 2px solid;

border-color: #BDBDBD

}

.na{

border: 2px solid;

border-color: #BDBDBD;

width: 100%;

height: 100%;

}

</style>

</head>

<script type="text/javascript">

function relo(){

location.href="BoardForm.jsp?mygle=../action/gleAction.jsp";

}

function resetText(){

location.href="../action/commentAction.jsp"

}

</script>

<body>

<div>

<center> <img src="../image/잡담게시판.png" width="40%" height="10%"

onclick="relo()" style="cursor: pointer;"> </center>

<table>

<tr>

<td class=je ><h3 align="center"> 제 목 </h3></td> <td class=id><h3 align="center"> 글 쓴 이 </h3></td> <td class=date><h3 align="center"> 작 성 일 </h3></td>

<tr>

<td class=je><h2 align="left"><%=je%></h2></td> <td class=id><h2 align="center"><%=id%></h2></td> <td class=date><h2 align="center"><%=date%></h2></td>

<tr><td colspan="3" rowspan="10" class=na><%=na %></td>

</table>

</div>

<div>

<form action="../action/commentAction.jsp?seq=<%=seq%>" method="post" name="form">

<table>

<%for(MemberVO t : memlist){ %>

<tr>

<td class="idd" style="width:10px;"><%=t.getComid() %></td>

<td class="comment" width="100%"> <%=t.getComna()%></td> 

<td class="date" style="width:20px;"> <%=t.getComdate()%></td> 

<%} %>

</tr>

<tr>

<td width="50%"><input type="text" name="comment"></td>

<td width="20%"><input type="submit" value="댓글저장" onclick="resetText()">

</td>

</table>

</form>

</div>

</body>

</html>

========================================================================================================

<%@ 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>

<style type="text/css">

div {

border: 2px solid #BDBDBD;

border-collapse: collapse;

}


td {

border: 2px solid #BDBDBD;

background-color: #EAEAEA;

border-collapse: collapse;

border-right-color: #BDBDBD;

border-left-color: #BDBDBD;

}

</style>

<meta http-equiv="Content-Type" content="text/html; charset=EUC-KR">

<title>글쓰는곳</title>

</head>

<script type="text/javascript">

function aasave(){

document.form.submit();

}

</script>

<body>


<center>

<img src="../image/글쓰기사진.png" width=40% height=5%>

</center>

<div>

<form action="../action/writeAction.jsp" name="form" method="post">

<table>

<tr>


<td width=0.9% align="center">제 목</td>

<td width=5.8%><input type="text" size="248%" maxlength="150" name="wpahr"></td>


</tr>

<tr>

<td colspan="2"><textarea rows="30" cols="260" name="sodyd"></textarea></td>

</tr>

<tr>

</table>

</form>

</div>


<img src="../image/저장.png" align="middle"

style="position: relative; left:93.5%; bottom: 1%;"

onclick="aasave()">




</body>

</html>

관련글 더보기