본문 바로가기
728x90
반응형

web9

Srping web.xml 해석 http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://JAVA.sun.com/xml/ns/javaee https://java.sun.com/xml/ns/javaee/web-app_4_0.xsd"> 서버가 켜질때 web.xml이 가장 먼저 읽어들이는 설정 파일 프로젝트 전반적으로 사용도리 설정, 객체(Bean)를 생성하는 용도의 파일   --> and Filters --> contextConfigLocation classpath:spring/root-context.xml org.springframework.web.context.ContextLoa.. 2024. 8. 3.
쿠키(Cookie) + 아이디 저장하기. Cookie : 클라이언트 (브라우저)에서 관리하는 파일 - 특정 주소 요청 시 마다 해당 주소와 연관된 쿠키 파일을 브라우저 알아서 읽어옴-> 읽어온 쿠키 파일 내용을 서버에 같이 전달 생성 및 사용 방법 1) 서버가 요청에 대한 응답을 할 때쿠키를 생성한 후 응답에 쿠키를 담아서 클라이언트에게 전달 2) 응답에 담긴 쿠키가 클라이언트에 파일형태로 저장 3) 이후 특정 주소 요청 시 쿠키 파일을 브라우저가 찾아서 자동으로 요청에 실어서 보냄 4) 서버는 요청에 실려온 쿠키 파일을 사용함 login servlet에서 쿠키 객체 생성 //쿠키 객체 생성// Cookie c = new Cokkie("클라이언트쪽에 저자욀 쿠키 이름", "쿠키 내용");//""쿠키를 저장할값, inpuutEmail 위에서 설정.. 2024. 6. 29.
자바스크립트 js 이벤트 //인라인 이벤트 모델 확인하기function test1(button){   // console.log(button)   button.style.backgroundColor="red";   button.style.color= "white";}//고전 이벤트 모델 확인하기console.log(document.getElementById("test2-1"));document.getElementById("test2-1").onclick = function(){    //익명 함수(이벤트 핸들러에 많이 사용함)    alert("고전 이벤트 모델 확인");}//이벤트 제거document.getElementById("test2-2").onclick = function(){    //test2-1 이벤트 제거    .. 2024. 6. 14.
javascript 개요 js.// 한줄 주석/* 범위주석 *///js 파일은 태그 내부라고 생각function btnClick2(){    window.alert("external 알림창 추력 버튼!");}function changeColor1(){    document.getElementById("box").style.backgroundColor = "red";}function changeColor2(){    document.getElementById("box").style.backgroundColor ="yellow";} html.DOCTYPE html>html lang="en">head>    meta charset="UTF-8">    meta name="viewport" content="width=device-wid.. 2024. 6. 12.
하이퍼 링크 태그 DOCTYPE html>html lang="en">head>    meta charset="UTF-8">    meta name="viewport" content="width=device-width, initial-scale=1.0">    title>08_하이퍼링크관련태그title>head>body>    h1>하이퍼 링크 관련 태그 : a(anchor) 태그h1>    pre>        a태그는 현재 HTML문서와 다른 HTML문서를 연결해서        페이지 이동을 할 수 있게 하는 기능을 제공        -> 이 때, a태그로 감싸진 문자열 == 하이퍼링크        * 하이퍼링크는 웹(HTML)문서가 다른 문서와 구분될 수 있는 핵심적인 기능        텍스트 또는 이미지를  클릭해서.. 2024. 5. 31.
이미지 관련 태그 DOCTYPE html>html lang="en">head>    meta charset="UTF-8">    meta name="viewport" content="width=device-width, initial-scale=1.0">    title>07_이미지 관련 태그title>head>body>    h1>img 태그h1>    pre>        - 웹 문서에 사진이나 그림 같은 이미지를 삽입하는 용도이 태그        [속성]        1) src : 삽입할 이미지의 경로를 지정하는 속성(파일 경로, 웹 주소)        2) width/height : 이미지의 크기를 지정하는 속성        3) alt : 이미지를 설명하는 속성                 -> 이미지가 출력되지.. 2024. 5. 30.
728x90
반응형