lecture4
aj-lecture4
EJB vs Java Beans
Lab3
Lab3 프로젝트 디렉토리 안에 모든 파일과 보고서(3-4장정도 – 장수제한없음)를 넣고 AJ20_Lab3_학번_이름.zip 압축한 후 제출한다. (Due by 4/15)
aj20-lab3
Lab3_1 – 화학 원소 주기율표 정보를 ArrayList에 넣고 다음을 사용하여 구현한다.
index.jsp sendRedirect lab3.jsp
lab3.jsp includes header.jsp, ptable.jsp, footer.jsp
ptable.jsp includes declaration.jsp, pelement.jsp
declaration.jsp contains PeriodicElement & List of PeriodicElement
PeriodicElement는 String imageSource 추가
add(new PeriodicElement(“Hydrogen”,1,”H”,1.01,”https://upload.wikimedia.org/wikipedia/commons/thumb/8/83/Hydrogen_discharge_tube.jpg/220px-Hydrogen_discharge_tube.jpg”));
add(new PeriodicElement(“Helium”,2,”He”,4.00,”https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Helium_discharge_tube.jpg/220px-Helium_discharge_tube.jpg”));
pelement.jsp contains declaration.jsp & menu.jsp
menu.jsp go back to index.jsp
Lab3_2 – 본인이 원하는 JSP를 작성한다. 메인/테이블/개별정보 페이지로 구성, HTML div, img, table, JSP implicit object사용, JSP로 동적으로 img, table, href 등 표현
TestImplicitObject
TestImplicitObject
TestImplicitObject
lecture3
lecture3
aj-lecture3
Lab2
Lab2 프로젝트 디렉토리 안에 모든 파일과 보고서(3-4장정도 – 장수제한없음)를 넣고 AJ20_Lab2_학번_이름.zip 압축한 후 제출한다. (Due by 4/8)
Lab2_1 – 화학 원소 주기율표 정보를 ArrayList에 넣고 다음을 사용하여 구현한다.
index.jsp forward lab2.jsp
lab2.jsp includes header.jsp, ptable.jsp, footer.jsp
ptable.jsp includes declaration.jsp
Lab2_2 – 본인이 원하는 JSP를 작성한다. 주석, 스크립트릿, 선언, 표현식, 지시어(page, include), 액션 태그(include, forward)
lecture2
lecture2
aj-lecture2
jsp:forward vs HttpServletResponse.sendRedirect()
jsp:include vs jsp:forward
https://www.java67.com/2016/02/difference-between-jspinclude-and-forward-in-JSP.html
jsp:forward action stops processing, clears its buffer, and forwards the request to the target resource.
jsp:include action includes response from another resource at the request time.
include directive vs include action tag
https://codesjava.com/jspinclude-action-tag
https://beginnersbook.com/2013/12/difference-between-include-directive-and-include-tag-in-jsp/
Include directive includes the file at translation time (the phase of JSP life cycle where the JSP gets converted into the equivalent servlet) whereas the include action includes the file at runtime.