À̹ø°­Á¿¡¼­´Â °øÁö»çÇ×À» ¸¸µé¾î º¸µµ·Ï ÇÏ°Ú½À´Ï´Ù.

±â´ÉÀ̳ª ÇüŸ鿡¼­ °Ô½ÃÆÇ°ú »ó´çÈ÷ ¸¹Àº ºÎºÐÀÌ ºñ½ÁÇÕ´Ï´Ù.

µû¶ó¼­ À̹ø °­ÁÂÀÇ ÇÙ½ÉÀº º¹ÀâÇÑ °Ô½ÃÆÇ ±¸ÇöÀ» À§ÇÑ ¿ä¼Ò ±â¼ú ½ÀµæÀÇ Àü °úÁ¤ À̶ó°í ÇÒ ¼ö ÀÖ°Ú½À´Ï´Ù.

Áß¿äÇÑ °ÍÀº ½ºÅ©¸³Æ²¸´ Â÷¿ø¿¡¼­ °³¹ßÇÏ´Â °ÍÀÌ ¾Æ´Ï¶ó Áß¿ä·ÎÁ÷ ºÎºÐÀº ºóÁî·Î ó¸®ÇÏ°í ºóÁîÀÇ Ã³¸® °á°ú´Â Ä¿½ºÅÒ Å±׸¦ ÀÌ¿ëÇÏ¿© ¸¸µé¾î º¸µµ·Ï ÇÏ°Ú½À´Ï´Ù.

100% Ä¿½ºÅÒ Å±׷Π°¡¾ß ÇÑ´Ù°í »ý°¢Àº ÇÏÁö¸¸ ¿ª½Ã ¹®Á¦°¡ ÀÖ´Ù°í »ý°¢ÇÕ´Ï´Ù.

±×·¡¼­ °¡´ÉÇÑ ¸¹Àº ºÎºÐÀ» Ä¿½ºÅÒ Å±׷Πó¸®ÇÏ¿© ¸¸µé¾î º¸°Ú½À´Ï´Ù.

 

1.±¸Çö±â´É

 

- ¸ñ·Ï Ãâ·Â(¼øȯ±â´ÉÀÇ Ä¿½ºÅÒ Å±׻ç¿ë)

- ÆäÀÌ¡ ±¸Çö(setProperty ÀÌ¿ë)

- °Ë»ö ±â´É

- ±Û º¸±â

 

2.Class Á¤ÀÇ

 

- Å×ÀÌÅÍ Á¤ÀÇ ¹× setter/getter ¸Þ¼­µå(DB Field º°)

- ¸ñ·ÏÃâ·Â / ÇØ´ç±Û ³»¿ë °¡Á®¿À´Â Ŭ·¡½º

- ű×Çڵ鷯 Ŭ·¡½º

- µµ¿ì¹Ì Ŭ·¡½º(TagExtraInfo)

- ±âŸ À¯Æ¿¸®Æ¼ Ŭ·¡½º(ÁÙ¹Ù²Þ Ã³¸®)

 

* µð·ºÅ丮 ±¸Á¶

<d>WEB-INF

            ---- <d>classes

                                ------<d>bean

                                                    <f>repString.class            

                                ------<d>notice

                                                    <f>NoticeList.class

                                                    <f>NoticeRec.class            

                                ------<d>tag

                                                    <f>IterateTag.class

                                                    <f>IterateTEI.class

                                                    <f>repStringTag.class            

            ---- <d>tlds

                                       <f>taglib_1_0.tld

            <f>web.xml

<f>list.jsp

<f>PageList.jsp

<f>view.jsp        

                                                                                           * <d> - directory

                                                                                           * <f> - file

 

 

 

3.DB Schema Á¤ÀÇ

 

USE testdb;

 

CREATE TABLE NOTICE_T(

             NO INT UNSIGNED NOT NULL PRIMARY KEY auto_increment,

             SUBJECT VARCHAR(80) NOT NULL,

             CONTENT TEXT NOT NULL,

             REGI_DATE DATE,

             CNT INT NOT NULL

);

 

4. µ¥ÀÌÅÍÁ¤ÀÇ ¹× setter/getter ¸Þ¼­µå

 

Á¦¸ñÀ» ½á³õ°í º¸´Ï±î Á» ÀÌ»óÇϱä Çϳ׿ä.. Á¦°¡ ¾Æ´Â ºÐÀÇ ¸»¾¸À¸·Î´Â ÀÌ·± Ŭ·¡½º¸¦ model À̶ó°í ÇϽôõ±º¿ä.. ¼ÒÀ§ MVC ¸ðµ¨Áß M ¿¡ ÇØ´çÇÏ´Â ºÎºÐÀÔ´Ï´Ù.

ÀÌ Å¬·¡½º´Â ¸»±×´ë·Î µ¥ÀÌÅÍŸÀÔÀ» Á¤ÀÇÇÏ°í ±× µ¥ÀÌÅ͵éÀ» °¡Á®¿À°Å³ª ¼³Á¤ÇÏ´Â µîÀÇ ¸Þ¼­µå·Î ±¸¼º µÇ¾î ÀÖ½À´Ï´Ù.

 

¿ì¸®°¡ ¾²°íÀÚ ÇÏ´Â DB Field º°·Î ¸â¹ö º¯¼ö¸¦ ÁöÁ¤ÇÏ°í À̵éÀ» °¡Á®´Ù ¾²±âÀ§ÇÑ getter ¸Þ¼­µå¿Í ¼³Á¤Çϱâ À§ÇÑ setter ¸Þ¼­µå¸¦ Á¤ÀÇÇÏ¸é µË´Ï´Ù.

 

<NoticeRec.java>

package notice;

 

import java.io.*;

import java.util.*;

 

public class NoticeRec implements Serializable{

             public int num;                            // ±ÛÀÇ ¼ø¹ø(index°¡ ¾Æ´Ô)

             public int no;                               // ±Û¹øÈ£(index)

             public String subject;                          // ±ÛÁ¦¸ñ

             public String content;                          // ±Û³»¿ë

             public String regi_date;                          // µî·ÏÀÏ

             public int cnt;                              // Á¶È¸¼ö

            

             public NoticeRec(){}

            

             // getter , setter ¸Þ¼­µå

             public int getNum(){return num;}

             public void setNum(int num){this.num = num;}

             public int getNo(){return no;}

             public void setNo(int no){this.no = no;}

             public String getSubject(){return subject;}

             public void setSubject(String subject){this.subject = subject;}

             public String getContent(){return content;}

             public void setContent(String content){this.content = content;}

             public String getRegi_date(){return regi_date;}

             public void setRegi_date(String regi_date){this.regi_date = regi_date;}

             public int getCnt(){return cnt;}

             public void setcnt(int cnt){this.cnt = cnt;}

}

 

 



Âü°í ¹®¼­ ¹× »çÀÌÆ®
- ÅÂ±× ¶óÀ̺귯¸® Æ©Å丮¾ó (www.orionsever.com)
- www.webdox.co.kr
- jsp.boolpae.com
- Web Development with JavaServerPages (ÀÎÆ÷ºÏ)
- ¿¹Á¦·Î ¹è¿ì´Â ÀÚ¹Ù ÇÁ·Î±×·¡¹Ö (ÇѺû ¹Ìµð¾î)
- ÆÛÆåÆ® JSP (ÇѺû ¹Ìµð¾î)