1. window-preferences-general-workspace의 text file encoding을 utf-8로 바꾸기

 

 

2. window-preferences-web의 css files/html files/jsp files의 인코딩을 utf-8로 바꿔주기

 

 

3. (여기까지 설정하고 나면 이미 되어있을테지만) dynamic web project위에서 우클릭-properties-resource에서 텍스트 인코딩을 utf-8로 설정하기

 

4. 더 있을까...

'아무말' 카테고리의 다른 글

nas2dual에 톰캣 설치하기  (0) 2021.03.25
주니어 개발자가 반드시 읽어야 할 글  (0) 2020.02.02

1. insert

1-1. 테이블의 칼럼명을 모두 알고있거나, 일부 칼럼에 값을 넣을 필요가 있을때

insert into 테이블 (칼럼1, 칼럼2, 칼럼3, 등등 ,로 구분) values(칼럼1에 넣을 값, 칼럼2에 넣을 값, 등등 순서대로 , 로 구분)

1-2. 칼럼의 순서를 알고있고 모든 칼럼에 값을 넣을때

insert into 테이블 values(DB의 칼럼순서대로 값을 전체 칼럼에 넣기)

 

 

 

2. select

select *(전체가져오기) from 테이블

2-1. '칼럼'에 '값'이 일치하는 레코드 가져오기

select *(전체) from 테이블 where 칼럼=값

2-2. select로 가져와서 정렬하기

select *(전체가져오기) from 테이블 order by 칼럼 desc(내림차순)
select *(전체가져오기) from 테이블 order by 칼럼 asc(오름차순)

2-3. '칼럼'에서 가장 큰 값 가져오기

select max(칼럼) from 테이블

2-4. 테이블의 레코드 개수 세기

select count(*) from 테이블;

2-5. '값1'보다 큰 값 부터 '값2'까지의 값 가져오기

select * from 테이블 limit 값1, 값2;

 

 

3. update

3-1. '칼럼'에 '값'인 레코드의 '칼럼1', '칼럼2', '칼럼3'의 값을 수정

update 테이블 set 칼럼1=값, 칼럼2=값, 칼럼3=값 where 칼럼=값

3-2. 모든 레코드의 '칼럼1', '칼럼2', '칼럼3'의 값을 수정

update 테이블 set 칼럼1=값, 칼럼2=값, 칼럼3=값

 

 

 

4.delete

4-1. 테이블에서 '칼럼'의 레코드중 '값'과 일치하는 데이터만 삭제

delete from 테이블 where 칼럼=값

4-2. 테이블에서 레코드 모두를 삭제

delete from 테이블

 

 

1. 뒤로가기 

<input type="button" value="뒤로가기" onclick="javascript:history.go(-1);">
<script> 
history.back();
</script>

<script> 
history.go(-1);
</script>

 

 

2. 페이지 이동하기(onclick)

<input type="button" value="main.jsp페이지로 이동" onclick="location='main.jsp'">

 

3. 페이지 이동하기(javascript)

<script> location.href='main.jsp'; </script>

 

4. url변경 없이 이동하기

<jsp:forward page="main.jsp"></jsp:forward>

 

5. 페이지 이동(java)

response.sendRedirect("main.jsp");

 

6. 자바스크립트로 새창 띄우기

function openWindow() {
		features = 'width=330, height=200'; /*새 창 사이즈*/
		winName = '새 창'; /*새 창 이름*/
		window.open(URL, winName, features);
}

 

7. name에 포커스 주기

name.focus();

 

8. 읽기전용 input (html)

<input type="text" name="name" readonly="readonly">

 

9. 자바스크립트 함수 호출

<input type="button" value="자바스크립트 함수 호출" onclick="function();">
<a href="javascript:function()">자바스크립트 함수 호출</a>

 

10. css 삽입

<link rel="StyleSheet" href="상대경로/파일이름.css" type="text/css">

 

 

'javascript' 카테고리의 다른 글

카카오 맵 api로 역지오코딩하기  (0) 2021.03.26

 

 

1. 서블릿 홈페이지 접속

 

http://www.servlets.com/

 

Servlets.com

Home What's New? com.oreilly.servlet Servlet Polls Mailing Lists List Archives Servlet Engines Servlet ISPs Servlet Tools Documentation Online Articles The Soapbox "Java Servlet Programming, Second Edition" "Java Enterprise Best Practices" Speaking & Slide

www.servlets.com

 

 

2. 좌측의  com.oreilly.servlet  클릭

 

 

3. 하단의  cos-20.08.zip 클릭하여 다운받기

 

4. cos-20.08.zip의 lib 폴더 안에 있는 cos.jar 복사

 

5. 설치한 톰캣 폴더의 lib 폴더 안에 붙여넣기

6. html 파일의 form 부분에 enctype="multipart/form-data" 추가해주기

7. jsp 파일에서 멀티파트 가져오기(자동완성하면 이클립스가 알아서 가져와준다)(filerenamepolicy는 파일 이름이 중복될때 이름붙여주는 방식)

8. multipart 객체와 renamepolicy 객체를 생성 / multipart 객체에 파라미터로 리퀘스트, fileurl, 업로드 파일의 최대 크기, enctype, renamepolicy를 넘겨줌

 

 

 

 

'jsp' 카테고리의 다른 글

jsp-mySql 연동 jsp 코드부분  (0) 2020.11.11
jstl로 map에 접근하기 HashMap<String, Object>  (0) 2020.05.04

https://github.com/jojoldu/junior-recruit-scheduler/blob/master/README.md

나는 꼬꼬마개발자이기에 주니어가 되어서 다시 읽을테다

 

'아무말' 카테고리의 다른 글

nas2dual에 톰캣 설치하기  (0) 2021.03.25
이클립스 dynamic web project utf-8 설정하기  (0) 2020.02.14

쓸거야

 

 

 

1. 브라켓 사이트에 접속

http://brackets.io/

 

A modern, open source code editor that understands web design

Brackets is a lightweight, yet powerful, modern text editor. We blend visual tools into the editor so you get the right amount of help when you want it. With new features and extensions released every 3-4 weeks, it's like getting presents all year long.

brackets.io

 

2. 다운로드 버튼 클릭

 

3. 다운로드 파일 실행

 

마저쓸거야

 

 

 

 

 

 

 

 

 

쓸 예정

+ Recent posts