728x90
300x250

[JSP] 7. JSP, Servlet(JDBC) 프로그래밍

 

간결하고 쉽게 작성해보았다.

일반 게시판에서 사용되는 페이징 기법은 제거하고 JSP, Servlet(서블릿) 사용 방법에 대해서 소개한다.

(I tried to write concise and easy.)

(Removes the paging technique used in general bulletin board and introduces how to use JSP, Servlet.)

 

 

* Apache Tomcat-9.0.27
* Microsoft Windows 10
* MariaDB 10.4

 


1. 아파치 톰캣 실행하기

 

톰캣을 실행한다. startup.bat 배치 파일을 실행하면 된다.

(Run Tomcat. Just run the startup.bat batch file.)

 

 

Figure 1) Tomcat folder

그림 1) 톰캣 폴더의 모습

 

 

Figure 2) Tomcat external library folder

그림 2) 톰캣 외부 라이브러리 폴더

 

"C:\apache-tomcat-9.0.27\lib"는 tomcat의 서블릿, DBCP, Catalina 등이 담겨져 있는 라이브러리 폴더이다.

("C:\apache-tomcat-9.0.27\lib" is a library folder containing tomcat's servlets, DBCP, Catalina, and so on.)

 

 

Figure 3) Tomcat run

그림 3) 톰캣 실행의 모습

 


2. 이클립스의 모습(Eclipse)

 

이클립스 웹 작업에 있어서 가장 중요한 것은 아무래도 환경설정을 꼽겠다.

(Perhaps the most important thing when working with Eclipse web is configuration.)

 

 

Figure 4) Programming work in Eclipse

그림 4) 이클립스에서의 프로그래밍 작업 모습

 

 

 

Figure 5) Adding "MariaDB-Java-client-2.4.4.jar" and "Tomcat Jars" to Libraries tab in Java Build Path

그림 5) Java Build Path에 Libraries 탭에 "MariaDB-Java-client-2.4.4.jar", "Tomcat Jars" 추가 모습

 

[첨부(Attachment)]

mariadb-java-client-2.4.4.jar

 

초기 작업할 수 있도록 프로젝트 파일도 첨부해서 올려놓도록 하겠다.

(We will also attach a project file for the initial work.)

 

[첨부(Attachment)]

Stone.z01

Stone.z02

Stone.z03

Stone.zip

 


3. HeidiSQL 10.2.0.5599에서 게시판 DB 설계하기(Designing board DB in HeidiSQL 10.2.0.5599)

 

예제에 사용한 게시판 DB 설계를 하였다.

가볍게 따라서 작성하면 될 것이다.

(Designed bulletin board DB used in the example.)

(Simply follow along.)

 

 

Figure 6) "board_list" Board Design Example

그림 6) "board_list" 게시판 설계의 예

 


4. 프론트엔드에서 사용자 접속의 예(Example of User Connections at the Front End)

 

아래의 그림은 프론트엔드에서의 웹 사이트이다.(The figure below shows a Web site at the front end.)

http://localhost:8080/Stone/Board/list.jsp

http://localhost:8080/Stone/Board/write.jsp

 

Figure 7) Example of list.jsp

그림 7) list.jsp의 예

 

 

Figure 8) Example of write.jsp

그림 8) write.jsp의 예

반응형

+ Recent posts