개인 프로젝트/웹 개발 프로젝트(JSP)7 [JSP] getBoard, insertBoard, deleteBoard, login.jsp JSP란 무엇인가?**JSP (Java Server Pages)**는 서버 측에서 동적으로 웹 페이지를 생성할 수 있는 기술입니다. JSP는 HTML 코드에 Java 코드를 삽입하여, 서버에서 실행된 결과를 클라이언트(브라우저)로 전달합니다. JSP는 주로 **프런트엔드(UI)**를 담당하는 데 사용되며, 사용자가 보는 웹 페이지의 View(뷰) 역할을 합니다.JSP의 역할: JSP는 애플리케이션의 프리젠테이션 레이어로, 데이터가 사용자에게 어떻게 보이는지 결정합니다. 브라우저에 전달할 HTML을 생성하고, 서버에서 데이터를 받아 출력하는 역할을 담당합니다.JSP의 한계: JSP 자체에는 비즈니스 로직이 없고, 데이터베이스와 상호작용하지 않습니다. 이것은 데이터를 직접 처리하거나, 애플리케이션 전체의 흐.. 2024. 10. 17. [Java] GoogleTV, AppleSpeaker, LGTV, SamsungTV GoogleTVpackage polymorphism3;public class GoogleTV implements TV { private Speaker speaker; private int price; public GoogleTV() { System.out.println("===> GoogleTV(1) 생성"); } public GoogleTV(Speaker speaker) { System.out.println("===> GoogleTV(2) 생성"); this.speaker = speaker; } public GoogleTV(Speaker speaker, int price) { System.out.println("===> GoogleTV(3) 생성"); this.speaker = speaker.. 2024. 10. 17. JSP, XML 코드 (JSP 서브 프로젝트) http://localhost:8080/Hello_World/ index.jsp Hello World! userJoinAction.jsp Hello World! DatabaseUtil # DatabaseUtil package util; import java.sql.Connection; import java.sql.DriverManager; public class DatabaseUtil { public static Connection getConnection() { try { String dbURL = "jdbc:mysql://localhost:3306/TUTORIAL"; String dbID = "root"; String dbPassword = "root"; Class.forName("com.mysql... 2023. 6. 11. 프로젝트 Clean, 자동빌드 https://dololak.tistory.com/63 2023. 6. 9. 이전 1 2 다음