JavaScript
-
(개발지식) 6 - Java / jsp / JavaScript / JQuery 개념 및 구동순서 + 언어발전 순서개발/개발지식 2023. 8. 29. 21:01
spring 을 통해 jsp 를 사용하면서 구동되는 순서가 헷갈렸다. Java / jsp / JavaScript / JQuery 에 대한 개념이 명확하지 않다는 결론과 동시에 정리해보고자 한다. ■ Java / jsp / JavaScript / JQuery 개념 - JAVA (자바_서버) : 여러 소프트웨어를 생성하는 객체지향 프로그래밍 언어이다. 보안성이 뛰어나고, javascript와 다르게 서버에서 실행되는 언어이다. - JSP (JAVA Server Pages_서버) : HTML내에 직접 자바코드를 삽입하여 웹 서버에서 동적으로 웹 페이지를 생성하여 웹 브라우저에게 돌려주는 서버 측 웹 프로그래밍 중 하나이다. - JavaScript (자바스크립트_클라이언트) : 정적인 웹 문서에 동작을 부여하는..
-
(국비교육) 46 - project1 이어하기13 (JSON view + 페이징 처리 + 댓글 기능)개발/국비교육 2023. 8. 3. 18:43
■ json 배열 그냥 내보내면 ajax 가 형식이 맞지 않아 못받기 때문에 json 으로 바꿔준다. json 객체를 만들어주고 배열도 만들어준다. 그리고 리스트 맵타입을 제이슨 배열에 담아준다. 이 배열을 다시 json 에다 담아주고 출력해주면 정상 출력된다. * 에러해결 나의 경우 배열에 list 를 담지 않아서 뜨지 않았다. 추후에 다음과 같이 사용하여 페이징 처리할 예정이다. 이제 json 에 넣고 출력하면 다음과 같이 나온다. 즉 다음과 같이 객체 안에 객체가 있는 형태이다. 안에 값을 변수를 통해 부를 수 있으며 객체 안의 객체는 변수의 배열로 부를 수 있다. 다음과 같이 글이 안이쁘게 나온다. json 형태로 예쁘게 보여줄 수 있다. https://chrome.google.com/websto..