JSP/SERVLET
2020.09.24 / 17:09

±î¿À±â º¸µå 2.3

Äڷγª
Ãßõ ¼ö 143

===========================================================================
KKAOKBoard ver2.3
Á¦ÀÛÀÚ : kkaok ( jack1972@naver.com )
ȨÆäÀÌÁö : http://www.kkaok.pe.kr
===========================================================================

1. ¼Ò½º´Â ¼öÁ¤ ¹èÆ÷ µÉ¼ö ÀÖÀ¸¸ç ¼öÁ¤ ¹èÆ÷½Ã ¿ø Á¦ÀÛÀÚ¸¦ ¸í½ÃÇÏ¿©¾ß ÇÑ´Ù.
2. »ó¾÷¼º »çÀÌÆ®¿¡¼­ÀÇ »ç¿ëÀº ±ÝÁöÇÑ´Ù.
3. ¼Ò½ºÀÚü¸¦ »ó¾÷Àû(¼Ò½ºÀÇ ÆǸÅ,´ë¿©µî)À¸·Î ÀÌ¿ëÇÒ ¼ö ¾ø´Ù.
4. ÀÌ ÇÁ·Î±×·¥ÀÇ »ç¿ëÀ¸·Î ÀÎÇÑ ¾î¶°ÇÑ ÇÇÇØ¿¡µµ Á¦ÀÛÀڴ åÀÓÀ» ÁöÁö ¾Ê´Â´Ù.
¡á Å×½ºÆ® URL
http://www.kkaok.pe.kr/servlet/KBoard
¡á ±â´É ¹× Ư¡
1. wysiwyg °Ô½ÃÆÇ
2. À̹ÌÁö »ðÀÔ°¡´É(10°³, ¼öÁ¤µÈ°Í±îÁö Æ÷ÇÔ)
3. ¿å¹æÁö ½ºÅ©¸³Æ®(À¥»ó¿¡¼­ Æۿ°Í)
4. ÷ºÎÈ­ÀÏ(Çѹø¿¡ ´Ù¼¸°³±îÁö ¼öÁ¤½Ã ¸¶´Ù Áõ°¡°¡´É, ¹«Á¦ÇÑ)
5. Ä¿¸àÆ®(»èÁ¦°¡´É)
6. °Ë»ö½Ã ÃÖ´ë 150°³±îÁö Á¦ÇÑ
7. ÄíÅ°¸¦ ÀÌ¿ëÇÑ °Ë»ö¼Óµµ Çâ»ó
8. and,or,&,^ °Ë»ö°¡´É
9. Àüü°øÁö°¡´É,¿©·¯°³ °¡´É,¼±º°°øÁö °¡´É
10. °Ô½ÃÆǺ° °øÁö°¡´É,¿©·¯°³ °¡´É,¼±º°°øÁö °¡´É
11. °Ô½ÃÆÇ »ý¼º ¹«Á¦ÇÑ
12. °Ô½ÃÆÇ ÇüÅ °áÁ¤(´äº¯Çü,ÀϹÝÇü,´º½ºÇü)
13. °Ô½ÃÆÇ ½ºÅ²±â´É
14. post ¹æ½Ä¸¸À¸·Î ±¸Çö
15. connection pool
16. edit mode ¼±ÅÃÀû¿ë
17. À̹ÌÁö »ðÀÔ ¼±ÅÃÀû¿ë
18. ÷ºÎÆÄÀÏ ¼±ÅÃÀû¿ë
19. °Ë»ö¾î red·Î Ç¥Çö
20. º¸°­µÈ ¿¡·¯ ó¸®
21. °Ô½ÃÆÇ Ãß°¡ »èÁ¦½Ã ´Ù¿î·Îµå Æú´õ »ý¼º ¹× »èÁ¦
* ±âÁ¸ 2.0°ú ±â´É»ó Â÷ÀÌ´Â °ÅÀÇ ¾ø½À´Ï´Ù.
* ±¸Á¶¸¸ º¯°æ Çß½À´Ï´Ù.
¡á °³¹ß ȯ°æ & Å×½ºÆ® ȯ°æ
Windows 2000 , Tomcat3.2.3, oracle 8.1.6, jdk 1.3.1
¡á ¼³Ä¡¹æ¹ý

1. ¾ÐÃàÀ» Ç®¾î "/" root ¾Æ·¡ °¡Á®´Ù ³õ½À´Ï´Ù.
images,kBoard,upload,wysiwyg
ÀÌÁß¿¡ web-inf/classes´Â class È­ÀϵéÀÓÀ¸·Î ÇØ´ç À§Ä¡¿¡ º¹»çÇØ ÁÖ¼¼¿ä
web.xmlµµ ²À ÇÊ¿äÇÑ È­ÀÏÀÔ´Ï´Ù.
2. DB ·Î±×ÀÎ ¾ÆÀ̵ð,Æнº¿öµå: web-inf/classes/kr/pe/kkaok/pool/db.properties
/********************* ¼öÁ¤ÇÒ ºÎºÐ *************************/
mydb.url=jdbc:oracle:thin:@ÁÖ¼Ò:1521:SID
mydb.maxconn=0
mydb.user=USERID
mydb.password=USERPWD
/***********************************************************/
3. ±âº»È¯°æÀ» °¡Á®¿À´Â bean ¼öÁ¤ : web-inf/classes/kr/pe/kkaok/common/Config.java
/********************* ¼öÁ¤ÇÒ ºÎºÐ *************************/
public static final String ADMIN_ID = "admin";
public static final String ADMIN_PWD = "admin";
public static final int MAX_UPLOAD_SIZE_BOARD = 6 * 1024 * 1024;
public static final String SAVE_DIR_BOARD = "upload/down/";
public static final String SAVE_DIR_IMAGES = "upload/downImg/";
public static final String HTTPURL = "http://www.kkaok.pe.kr";
public static final String ADMIN_EMAIL = "jack1972@naver.com";
/***********************************************************/
ÇØ´ç ºÎºÐÀ» ¼öÁ¤ÇØ ÁÖ¼¼¿ä
Ãʺ¸ºÐµéÀº °¡±ÞÀû ¼öÁ¤ÇÏÁö ¸¶½Ã°í Å×½ºÆ®ÈÄ ¹®Á¦°¡ ¾ø´Ù¸é Á¶±Ý¾¿ °íÃÄ ÁÖ¼¼¿ä

4. smtp ¼ÂÆÃ
kenu´Ô °­Á Âü°íÇϽðí smtpÀâ¾Æ ÁÖ¼¼¿©
http://okjsp.pe.kr/lecture/network/smtpemwac.htm
javamail
mail.jar¿Í activation.jar¸¦ ´Ù¿î¹ÞÀ¸½ÅÈÄ ÇØ´çÀ§Ä¡¿¡ ³õÀ¸½Ã°í ȯ°æº¯¼ö¿¡ Àâ¾ÆÁÖ¼¼¿ä
5. classes12.zip È®ÀÎ ÃÖ±Ù°ÍÀÎÁö È®ÀÎ, ȯ°æº¯¼ö·Î Àâ¾Æ ÁÖ¼¼¿©
C:OracleOra81jdbclibclasses12.zip ÀÌÈ­ÀÏÀÌ 1.84M ¶ó¸é OK
6. »ç¿ëÇϽǶ§ ¿©·¯ÇÁ·¹ÀÓÀ¸·Î ³ª´²¼­ »ç¿ëÇÑ´Ù¸é ¾Æ·¡ È­ÀÏÀ» ȯ°æ¿¡ ¸Â°Ô º¯°æÇÏ¼Å¾ß ÇÕ´Ï´Ù.
wysiwygincludeimageok.jsp

7. µðºñ »ý¼º-¾Æ·¡ ³»¿ëÀ» sqlPlus¸¦ ½ÇÇà½ÃŲÈÄ Â÷·ÊµÇ·Î ½ÇÇà½ÃÄÑ ÁÖ¼¼¿ä
¿©±â¿¡ ³ª¿À´Â Å×À̺íµéÀÇ À̸§Àº º¯°æÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.
CREATE TABLE tableMng (
idx number(8) not null,
tbName varchar2(20) not null,
tbCnt number(8) DEFAULT 0 not null,
skin number(2),
attach_key number(1),
editmode number(1),
image_allow number(1),
tbTitle varchar2(200) not null,
tbInfoStatus number(1) not null,
CONSTRAINT tableMng_pk_tbName PRIMARY KEY (tbName)
);
create index tableMng_indx on tableMng(idx);
CREATE TABLE tableMngInfo (
idx number(8) not null,
seq number(8) not null,
title varchar2(200) not null,
content clob,
readnum number(8) not null,
writeday date,
imgInfo varchar2(300),
viewSelect number(1),
CONSTRAINT tableMngInfo_pk_seq PRIMARY KEY (seq)
);
create index tableMngInfo_indx on tableMngInfo(idx,seq);
insert into tableMng (idx,tbName,tbCnt,skin,tbTitle,tbInfoStatus,attach_key,
editmode,image_allow) values(1,"kkaok",0,1,"KKAOK",0,0,0,0);
CREATE TABLE commentMng (
idx number(8) not null,
seq number(8) not null,
tbidx number(8) not null,
com_name varchar2(50) not null,
com_writeday date default sysdate not null,
com_memo varchar2(2000) not null,
com_pwd varchar2(8) not null,
CONSTRAINT commentMng_pk_tbidx PRIMARY KEY (tbidx)
);
create index commentMng_indx on commentMng(idx,seq,tbidx);

CREATE TABLE downloadMng (
idx number(8) not null,
seq number(8) not null,
tbidx number(8) not null,
fileName varchar2(200) not null,
fileSize varchar2(20) not null,
downCnt number(8) not null,
CONSTRAINT downloadMng_pk_tbidx PRIMARY KEY (tbidx)
);
create index downloadMng_indx on downloadMng(idx,seq,tbidx);

CREATE TABLE downloadMngInfo (
idx number(8) not null,
seq number(8) not null,
tbidx number(8) not null,
fileName varchar2(200) not null,
fileSize varchar2(20) not null,
downCnt number(8) not null,
CONSTRAINT downloadMngInfo_pk_tbidx PRIMARY KEY (tbidx)
);
create index downloadMngInfo_indx on downloadMngInfo(idx,seq,tbidx);

CREATE TABLE kkaok (
idx number(8) not null,
ref number(8) not null,
re_level number(8) DEFAULT 0 not null,
re_step number(8) ,
name varchar2(50) not null,
title varchar2(200) not null,
content clob not null,
pwd varchar2(8),
email varchar2(50),
homepage varchar2(100),
readnum number(8) DEFAULT 0 not null,
tag number(1) DEFAULT 0 not null,
writeday date,
ip varchar2(24),
imgInfo varchar2(300),
relativeCnt number DEFAULT 0 ,
CONSTRAINT kkaok_pk_re_step PRIMARY KEY (re_step)
);
create unique index kkaok_indx on kkaok(idx);

Screen shot