목록분류 전체보기 (189)
개발로그필름
Servers/Tomcat v9.0 Server at localhost-config/tomcat-users.xml WebMarket/WebContent/WEB-INF/web.xml admin WebMarket Security WebMarket /addProduct.jsp 권한 관리자명 admin FORM /login.jsp /login_failed.jsp WebMarket/WebContent/login.jsp 로그인 Please sign in User Name Password 로그인 WebMarket/WebContent/login_failed.jsp WebMarket/WebContent/logout.jsp WebMarket/WebContent/addProduct.jsp Korean|English logout
WebMarket/src/bundle/message.properties title = \uC0C1\uD488 \uB4F1\uB85D productId = \uC0C1\uD488 \uCF54\uB4DC pname = \uC0C1\uD488\uBA85 unitPrice = \uAC00\uACA9 description = \uC0C1\uC138 \uC124\uBA85 manufacturer = \uC81C\uC870\uC0AC category = \uBD84\uB958 unitsInStock = \uC7AC\uACE0 \uC218 condition = \uC0C1\uD0DC productImage = \uC774\uBBF8\uC9C0 condition_New = \uC2E0\uADDC \uC81C\uD488 ..
jumin = "990120-1234567" print("성별 : " + jumin[7]) print("연 : " + jumin[0:2]) # 0부터 2 직전까지 (0,1) print("월 : " + jumin[2:4]) print("일 : " + jumin[4:6]) print("생년월일 : " + jumin[:6]) # 처음부터 6직전까지 print("뒤 7자리 : " + jumin[7:]) # 7부터 끝까지 print("뒤 7자리 (뒤에서부터) : " + jumin[-7:]) # 맨 뒤에서 7번째부터 끝까지
python = "Python is Amazing" print(python.lower()) # python is amazing print(python.upper()) # PYTHON IS AMAZING print(python[0].isupper()) # True print(len(python)) # 17 print(python.replace("Python", "Java")) # Java is Amazing index = python.index("n") print(index) # 5 index = python.index("n", index + 1) print(index) # 15 print(python.find("Java")) # -1 # print(python.index("Java")) # 오류. 프로그..
WebMarket/WebContent/resources/js/validation.js function CheckAddProduct() { var productId = document.getElementById("productId"); var name = document.getElementById("name"); var unitPrice = document.getElementById("unitPrice"); var unitsInStock = document.getElementById("unitsInStock"); // 상품 아이디 체크 if (!check(/^P[0-9]{4,11}$/, productId, "[상품코드]\nP와 숫자를 조합하여 5~12자까지 입력하세요\n첫 글자는 반드시 P로 시작하세요")..
cabinet = {3:"유재석", 100:"김태호"} print(cabinet[3]) print(cabinet[100]) print(cabinet.get(3)) print(cabinet[5]) # 오류 print(cabinet.get(5)) # None print(cabinet.get(5, "사용 가능")) # 사용 가능 print("hi") print(3 in cabinet) # True print(5 in cabinet) # False cabinet = {"A-3":"유재석", "B-100":"김태호"} print(cabinet["A-3"]) print(cabinet["B-100"]) # 새 손님 cabinet["A-3"] = "김종국" cabinet["C-20"] = "조세호" # 간 손님 del..
WebMarket/src/dto/Product.java package dto; import java.io.Serializable; public class Product implements Serializable { private static final long serialVersionUID = 1L; private String productId; // 상품 아이디 private String pname; // 상품명 private Integer unitPrice; // 상품 가격 private String description; // 상품 설명 private String manufacturer; // 제조사 private String category; // 분류 private long unitsInStoc..