본문 바로가기

수업/수업정리

2024-02-20-오후:절대경로 지정하기

이클립스 실습


1. 절대경로 지정하기

0) 사용된 단축키

- Ctrl+Shift+/ : 주석처리

- Ctrl+Shift+\ : 주석취소

- 마우스로 3번 클릭/Home : 한줄 선택

- Alt+ ↑/↓ : 한줄 이동

- Alt+Ctrl+ ↑/↓ : 한줄 복사

- Ctrl+D : 한줄 삭제

 

1) 다른 폴더에 있는 경우

<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="EUC-KR">
<title>Insert title here</title>
</head>
<body>
prac.a.jsp <br/>
<!-- 절대경로! -->
<a href="http://localhost:8080/ex240220_1224/prac_b/p_b.jsp">p_b.jsp로 웹 경로 이동</a>
<br/>
<a href="/ex240220_1224/prac_b/p_b.jsp">p_b.jsp로 파일 경로 이동</a>
<br/>
<!-- 상대경로1 -->
<a href="../prac_b/p_b.jsp">p_b.jsp로 하위 폴더 경로 이동</a>
</body>
</html>

 

2) 같은 폴더에 있는 경우

<%@ page language="java" contentType="text/html; charset=EUC-KR"
    pageEncoding="EUC-KR"%>
<!DOCTYPE html>
<html>
<!-- <link rel="stylesheet" type="text/css" href="main.css" /> -->
<link rel="stylesheet" type="text/css" href="./css/main.css" />
</head>

 

- 상위 폴더에서 탐색 : ../

- 하위 폴더에서 탐색 : ../


2. 간단한 회원 관리 화면 만들기

1) 공유된 War파일

layoutMG51.war
0.00MB

 

'수업 > 수업정리' 카테고리의 다른 글

2024-02-21-오후:UI의 특징  (0) 2024.02.21
2024-02-21-오전:Eclipse첫실습  (0) 2024.02.21
2024-02-20-오전:Eclipse시작하기  (0) 2024.02.20
2024-02-19-오후:SW개발환경의 이해  (0) 2024.02.19
2024-02-19-오전:기본설정  (0) 2024.02.19