Spring Data JPA, Spring Boot, Oracle, AngulerJS 적용게시판실습 게시판리스트보기.

Size: px
Start display at page:

Download "Spring Data JPA, Spring Boot, Oracle, AngulerJS 적용게시판실습 게시판리스트보기."

Transcription

1 Spring Data JPA, Spring Boot, Oracle, AngulerJS 적용게시판실습 게시판리스트보기 Spring JDBC 또는 MyBatis로만들때보다쉽고빠르게작성할수있다. 스프링컨트롤러는 RestController를적용했으며, 뷰페이지에 Bootstrap 및 AngulerJS 적용했다. 프로젝트전체구조는다음과같다. [BoardRepository.java] 기본적으로제공하는 JpaRepository 를상속받아만들면된다.

2 JpaRepository는 PagingAndSortingRepository를상속받았고 PagingAndSortingRepository는 CrudRepository( 기본적인 CRUD 기능을제공한다 ) 를상속받았으며다시 CrudRepository는 Repository 인터페이스를상속받았다. 그러므로 JpaRepository는모든기능을다사용할수있고추가적으로영속성컨텍스트에 flush하거나엔티티를배치로삭제할수있다. 기본기능만으로도게시판기능을구현할수있으므로 JpaRepository를상속받자. package jpa.board.repository; import org.springframework.data.jpa.repository.jparepository; import jpa.board.model.board; public interface BoardRepository extends JpaRepository<Board, Integer> { 서비스쪽클래스를작성하자. [BoardService.java] package jpa.board.service; import org.springframework.data.domain.page; import jpa.board.model.board; public interface BoardService { // 게시판리스트보기 public Page<Board> findall(integer curpage); JpaRepository 의 findall() 메소드를호출만하면되는데페이징기능을구현하기위해 PageRequest 를만들고이를 findall() 메소드의인자로넣어주면된다. Board 테이블에서정렬한칼럼이두개이상이므로 Sort 를 new 하면서 Order 를필요한만큼 생성해주면되고 ASC 는오름차순, DESC 는내림차순, 그뒤의문자열은 Board 엔티티의속성 이다.

3 [BoardServiceImpl.java] package jpa.board.service; import org.springframework.beans.factory.annotation.autowired; import org.springframework.data.domain.page; import org.springframework.data.domain.pagerequest; import org.springframework.data.domain.sort; import org.springframework.data.domain.sort.direction; import org.springframework.data.domain.sort.order; import org.springframework.stereotype.service; import jpa.board.model.board; import public class BoardServiceImpl implements BoardService BoardRepository // // 게시판리스트보기, 한페이지에 3개씩 // curpage: 요청하는페이지, 첫페이지는 0 // public Page<Board> findall(integer curpage) { PageRequest pr = new PageRequest(curPage, 3, new Sort( new Order(Direction.DESC, "reply"), new Order(Direction.ASC, "replystep"))); return boardrepository.findall(pr); 컨트롤러를작성하자. [BoardController.java]

4 package jpa.board.controller; import org.springframework.beans.factory.annotation.autowired; import org.springframework.data.domain.page; import org.springframework.data.domain.pageable; import org.springframework.stereotype.controller; import org.springframework.ui.model; import org.springframework.web.bind.annotation.pathvariable; import org.springframework.web.bind.annotation.requestmapping; import org.springframework.web.bind.annotation.requestmethod; import jpa.board.model.board; public class BoardController BoardService boardservice; // // 루트요청 (localhost:8080/board/) 시리스트보기로 = RequestMethod.GET) public ModelAndView index() { //jsp아래 board.jsp 호출 return new ModelAndView("board"); // // 게시판리스트보기 method = RequestMethod.GET) public ResponseEntity<Page<Board>> list(model model, Pageable Integer curpage) { Page<Board> page = boardservice.findall(curpage); return new ResponseEntity<Page<Board>>(page, HttpStatus.OK);

5 src/main/webapp/js, src/main/webapp/jsp 폴더를만들고 app.js, board_controller.js, board_service.js, list.jsp 를만들자. [src/main/webapp/js /app.js] 'use strict'; var App = angular.module('myboard',[]); [src/main/webapp/js /board_service.js] 'use strict'; App.factory('BoardService', ['$http', '$q', function($http, $q){ return { ]); ; list: function(curpage) { return $http.get(' + curpage).then( function(response){ console.log("[service:list]server call suceeded."); return response.data;, function(errresponse){ console.error('error while fetching contents'); return $q.reject(errresponse); ); [src/main/webapp/js /board_controller.js] 'use strict'; App.controller('BoardController', ['$scope', 'BoardService', function($scope, BoardService) { var self = this;

6 self.board={id:null,name:'',passwd:'',title:'',content:''; self.page=[]; ]); // 리스트보기 self.list = function(curpage){ BoardService.list(curPage).then( function(data) { self.page = data; console.log("[controller:list]", self.page); //alert(" 목록보기성공!");, function(errresponse){ console.error('error while fetching page...'); ); ; self.list(0); [board.jsp] <%@ page contenttype="text/html; charset=utf-8"%> <%@ taglib prefix="c" uri=" <%@ taglib prefix="fmt" uri=" <html> <head> <title>spring JPA 게시판 </title> <link rel="stylesheet" href=" <style>.name.ng-valid { background-color: lightgreen;.name.ng-dirty.ng-invalid-required { background-color: red;

7 .name.ng-dirty.ng-invalid-maxlength { background-color: yellow;.passwd.ng-valid { background-color: lightgreen;.passwd.ng-dirty.ng-invalid-required { background-color: red;.passwd.ng-dirty.ng-invalid-maxlength { background-color: yellow;.title.ng-valid { background-color: lightgreen;.title.ng-dirty.ng-invalid-required { background-color: red;.title.ng-dirty.ng-invalid-maxlength { background-color: yellow; body, #mainwrapper { height: 70%; background-color: rgb(245, 245, 245); body,.form-control { font-size: 12px!important;

8 .floatright { float: right; margin-right: 18px;.has-error { color: red;.formcontainer { background-color: #DAE8E8; padding: 20px;.tablecontainer { padding-left: 20px;.generic-container { width: 80%; margin-left: 20px; margin-top: 20px; margin-bottom: 20px; padding: 20px; background-color: #EAE7E7; border: 1px solid #ddd; border-radius: 4px; box-shadow: px black;.custom-width { width: 80px!important;.pointer { cursor: pointer; </style> <!-- For AngularJS -->

9 <script src=" <script src="<c:url value='/js/app.js' />"></script> <script src="<c:url value='/js/board_service.js' />"></script> <script src="<c:url value='/js/board_controller.js' />"></script> </head> <body ng-app="myboard" class="ng-cloak" ng-controller="boardcontroller as ctrl"> <div class="generic-container" ng-controller="boardcontroller as ctrl" style="width: 800px;"> <div class="panel panel-default"> <div class="panel-heading"> <span class="lead">spring Data JPA 게시판글쓰기 </span> <div class="formcontainer"> <form ng-submit="ctrl.submit()" name="myform" class="formhorizontal"> <input type="hidden" ng-model="ctrl.board.id" /> <div class="row"> <div class="form-group col-md-6"> <label class="col-md-2 control-lable" for="name">name : </label> <div class="col-md-7"> <input type="text" ngmodel="ctrl.board.name" id="name" class="name formcontrol input-sm" placeholder="enter your Name" required ng-maxlength="20" /> <div class="has-error" ngshow="myform.$dirty"> <span ngshow="myform.name.$error.required">this is a required field</span> <span ng-show="myform.name.$error.maxlength">maximum length is

10 20</span> <span ng-show="myform.name.$invalid">this invalid </span> field is <div class="row"> <div class="form-group col-md-6"> <label class="col-md-2 control-lable" for="passwd">password :</label> <div class="col-md-7"> <input type="password" ngmodel="ctrl.board.passwd" id="passwd" class="passwd form-control input-sm" placeholder="enter your Password" required ng-maxlength="20" /> <div class="has-error" ngshow="myform.$dirty"> <span ngshow="myform.passwd.$error.required">this is a required field</span> <span ng-show="myform.passwd.$error.maxlength">maximum length is 20</span> <span ng-show="myform.passwd.$invalid">this field is invalid </span> for="title">title :</label> <div class="row"> <div class="form-group col-md-6"> <label class="col-md-2 control-lable"

11 model="ctrl.board.title" id="title" control input-sm" your Title" required /> show="myform.$dirty"> show="myform.title.$error.required">this is a field</span> <span ng-show="myform.title.$invalid">this invalid </span> <div class="col-md-7"> <input type="text" ng- class="title form- placeholder="enter <div class="has-error" ng- <span ng- required field is <div class="row"> <div class="form-group col-md-6"> <label class="col-md-2 control-lable" for="content">contents :</label> <div class="col-md-7"> <textarea rows="4" ngmodel="ctrl.board.content" id="content" class="content form-control input-sm" placeholder="enter your Contents" required > </textarea> <div class="has-error" ngshow="myform.$dirty"> <span ngshow="myform.content.$error.required">this is a required

12 field</span> <span ng-show="myform.content.$invalid">this invalid </span> field is <div class="row"> <div class="form-actions floatright"> <input type="submit" value="{{!ctrl.board.id? 'Add' : 'Update'" class="btn btn-primary btnsm" ng-disabled="myform.$invalid"> <button type="button" ngclick="ctrl.reset()" class="btn btn-warning btnsm" ng-disabled="myform.$pristine">reset Form</button> </form> <div class="panel panel-default" style="float: center;"> <div class="panel-heading"> <span class="lead">spring Data JPA 게시판리스트보기 </span> <h5> 총 {{ctrl.page.totalelements</span> 건 </h5> <div class="tablecontainer"> <table width="600" border="1" align="left" class="table tablehover"> <tr align="left"> <th align="center"> 순번 </th> <th align="center"> 글번호 </th>

13 </tr> <th align="center"> 제목 </th> <th align="center"> 글쓴이 </th> <th align="center"> 등록일 </th> <th align="center"> 조회수 </th> <th align="center"> 조회 / 삭제 </th> <tr data-ng-repeat="board in ctrl.page.content"> <td align="center"><span ngbind="{{$index+1"></span></td> <td align="center"><span ngbind="board.id"></span></td> <td align="left"> <!-- 레벨의수만큼글을뒤로민다 --> <span ng-repeat="n in [].constructor(board.replylevel) track by $index"> </span> <span ng-bind="board.title"></span> </td> <td align="center"><span ngbind="board.name"></span></td> <td align="center">{{board.regdate date:"yy.mm.dd hh:mm"</td> <td align="center"><span ngbind="board.readcount"></span></td> <td> <button type="button" ngclick="ctrl.edit(board.id)" class="btn btn-success custom-width">edit</button> <button type="button" ngclick="ctrl.remove(board.id)" class="btn btn-danger custom-width">remove</button> </td> </tr> </tbody> </table>

14 <div> <!-- 게시판페이징 --> <ul class="pagination"> <li ng-class="{disabled: ctrl.page.number === ng-show="ctrl.page.number!== 0" class="pointer" ng-click="ctrl.list(ctrl.page.number- <span ng-show="ctrl.page.number <li ng-class="{disabled: ctrl.page.number === <a ng-show="ctrl.page.number!== class="pointer" ng- <span ng-show="ctrl.page.number </li> 0"><a 1)">Prev</a> === 0">Prev</span></li> ctrl.page.totalpages - 1"> ctrl.page.totalpages - 1" click="ctrl.list(ctrl.page.number+1)">next</a> === ctrl.page.totalpages - 1">Next</span> </ul> </body> </html> [JpaboardApplication.java] 스프링부트메인 package jpa.board; import java.util.date; import org.springframework.beans.factory.annotation.autowired;

15 import org.springframework.boot.commandlinerunner; import org.springframework.boot.springapplication; import org.springframework.boot.autoconfigure.springbootapplication; import jpa.board.model.board; import public class JpaboardApplication implements BoardRepository boardrepository; public static void main(string[] args) { SpringApplication.run(JpaboardApplication.class, args); public void run(string...args) { // 테스트를위해글9개입력 Board b1 = new Board(); b1.setcontent("jpa강좌추천해주세요1~"); b1.setname(" 홍길동1"); b1.setpasswd("1111"); b1.setreadcount(0); b1.setregdate(new Date()); b1.setreply(1); b1.setreplylevel(0); b1.setreplystep(0); b1.settitle(" 강좌추천요망1"); boardrepository.save(b1); Board b2 = new Board(); b2.setcontent("jpa강좌추천해주세요2~"); b2.setname(" 홍길동2"); b2.setpasswd("1111"); b2.setreadcount(0); b2.setregdate(new Date()); b2.setreply(2); b2.setreplylevel(0); b2.setreplystep(0); b2.settitle(" 강좌추천요망2"); boardrepository.save(b2); Board b3 = new Board();

16 b3.setcontent("jpa강좌추천해주세요3~"); b3.setname(" 홍길동3"); b3.setpasswd("1111"); b3.setreadcount(0); b3.setregdate(new Date()); b3.setreply(3); b3.setreplylevel(0); b3.setreplystep(0); b3.settitle(" 강좌추천요망3"); boardrepository.save(b3); Board b4 = new Board(); b4.setcontent("ojc로가세요..."); b4.setname(" 홍길동4"); b4.setpasswd("1111"); b4.setreadcount(0); b4.setregdate(new Date()); b4.setreply(6); b4.setreplylevel(1); b4.setreplystep(1); b4.settitle("[ 답변 ] 강좌추천요망6"); boardrepository.save(b4); Board b5 = new Board(); b5.setcontent("ojc로가세요..."); b5.setname(" 홍길동5"); b5.setpasswd("1111"); b5.setreadcount(0); b5.setregdate(new Date()); b5.setreply(2); b5.setreplylevel(1); b5.setreplystep(1); b5.settitle("[ 답변 ] 강좌추천요망2"); boardrepository.save(b5); Board b6 = new Board(); b6.setcontent("jpa강좌추천해주세요6~"); b6.setname(" 홍길동6"); b6.setpasswd("1111"); b6.setreadcount(0); b6.setregdate(new Date()); b6.setreply(6); b6.setreplylevel(0); b6.setreplystep(0); b6.settitle(" 강좌추천요망6"); boardrepository.save(b6); Board b7 = new Board(); b7.setcontent("jpa강좌추천해주세요7~"); b7.setname(" 홍길동7"); b7.setpasswd("1111"); b7.setreadcount(0); b7.setregdate(new Date());

17 b7.setreply(7); b7.setreplylevel(0); b7.setreplystep(0); b7.settitle(" 강좌추천요망 7"); boardrepository.save(b7); Board b8 = new Board(); b8.setcontent("ojc로가세요..."); b8.setname(" 홍길동8"); b8.setpasswd("1111"); b8.setreadcount(0); b8.setregdate(new Date()); b8.setreply(7); b8.setreplylevel(1); b8.setreplystep(1); b8.settitle("[ 답변 ] 강좌추천요망7"); boardrepository.save(b8); Board b9 = new Board(); b9.setcontent("jpa강좌추천해주세요9~"); b9.setname(" 홍길동9"); b9.setpasswd("1111"); b9.setreadcount(0); b9.setregdate(new Date()); b9.setreply(9); b9.setreplylevel(0); b9.setreplystep(0); b9.settitle(" 강좌추천요망9"); boardrepository.save(b9); 실행 ( 리스트보기에는페이지기능이적용되어있다.

18

Spring Data JPA Simple Example

Spring Data JPA Simple Example Spring Data JPA Simple Example http://ojcedu.com, http://ojc.asia Spring Boot, WEB MVC, Spring Data JPA, Maria DB 를이용하여간단히예제를만들어보자. 프로젝트생성 마리아 DB 설치는아래 URL 참조 http://ojc.asia/bbs/board.php?bo_table=lecspring&wr_id=524

More information

This project will use an API from to retrieve a list of movie posters to display on screen.

This project will use an API from   to retrieve a list of movie posters to display on screen. Getting Started 1. Go to http://quickdojo.com 2. Click this: Project Part 1 (of 2) - Movie Poster Lookup Time to put what you ve learned to action. This is a NEW piece of HTML, so start quickdojo with

More information

Dingle Coderdojo 6. Project Part 2 (of 2) - Movie Poster And Actor! - Lookup. Week 6

Dingle Coderdojo 6. Project Part 2 (of 2) - Movie Poster And Actor! - Lookup. Week 6 Dingle Coderdojo 6 Week 6 Project Part 2 (of 2) - Movie Poster And Actor! - Lookup This is an extension of what you did the last time (the Movie Poster lookup from Week 5). Make sure you ve finished that

More information

Paythru Remote Fields

Paythru Remote Fields Paythru Remote Fields Paythru Remote Fields are an alternative integration method for the Paythru Client POST API. The integration consists of contructing a basic javascript configuration object and including

More information

Project Part 2 (of 2) - Movie Poster And Actor! - Lookup

Project Part 2 (of 2) - Movie Poster And Actor! - Lookup Getting Started 1. Go to http://quickdojo.com 2. Click this: Project Part 2 (of 2) - Movie Poster And Actor! - Lookup This is an extension of what you did the last time (the Movie Poster lookup from Week

More information

Deployment to the Cloud

Deployment to the Cloud Appendix A Deployment to the Cloud Over the last couple of years the cloud has grown considerably and a lot of companies offer different cloud solutions, such as Platform as a Service Infrastructure as

More information

Deccansoft Software Services

Deccansoft Software Services Deccansoft Software Services (A Microsoft Learning Partner) HTML and CSS COURSE SYLLABUS Module 1: Web Programming Introduction In this module you will learn basic introduction to web development. Module

More information

AngularJS. CRUD Application example with AngularJS and Rails 4. Slides By: Jonathan McCarthy

AngularJS. CRUD Application example with AngularJS and Rails 4. Slides By: Jonathan McCarthy AngularJS CRUD Application example with AngularJS and Rails 4 1 Slides By: Jonathan McCarthy Create a new Rails App For this example we will create an application to store student details. Create a new

More information

Chapter6: Bootstrap 3. Asst.Prof.Dr. Supakit Nootyaskool Information Technology, KMITL

Chapter6: Bootstrap 3. Asst.Prof.Dr. Supakit Nootyaskool Information Technology, KMITL Chapter6: Bootstrap 3 Asst.Prof.Dr. Supakit Nootyaskool Information Technology, KMITL Objective To apply Bootstrap to a web site To know how to build various bootstrap commands to be a content Topics Bootstrap

More information

AngularJS. CRUD Application example with AngularJS and Rails 4. Slides By: Jonathan McCarthy

AngularJS. CRUD Application example with AngularJS and Rails 4. Slides By: Jonathan McCarthy AngularJS CRUD Application example with AngularJS and Rails 4 1 Slides By: Jonathan McCarthy Create a new Rails App For this example we will create an application to store student details. Create a new

More information

Spring Data JPA, QueryDSL 실습 JPAQueryFactory 이용

Spring Data JPA, QueryDSL 실습 JPAQueryFactory 이용 Spring Data JPA, QueryDSL 실습 JPAQueryFactory 이용 이전예제의 QueryDSL 작성부분만 JPAQueryFactory 를사용하여구현해보자. 다른점은 JPAQueryFactory 인스턴스생성을위해스프링부트메인에 @Bean 으로정의한부분과 EmpRepositoryImpl 의쿼리작성부분이조금다르고 groupby 처리메소드가추가되었다.

More information

Purpose of this doc. Most minimal. Start building your own portfolio page!

Purpose of this doc. Most minimal. Start building your own portfolio page! Purpose of this doc There are abundant online web editing tools, such as wordpress, squarespace, etc. This document is not meant to be a web editing tutorial. This simply just shows some minimal knowledge

More information

Working Bootstrap Contact form with PHP and AJAX

Working Bootstrap Contact form with PHP and AJAX Working Bootstrap Contact form with PHP and AJAX Tutorial by Ondrej Svestka Bootstrapious.com Today I would like to show you how to easily build a working contact form using Boostrap framework and AJAX

More information

IBM Bluemix Node-RED Watson Starter

IBM Bluemix Node-RED Watson Starter IBM Bluemix Node-RED Watson Starter Cognitive Solutions Application Development IBM Global Business Partners Duration: 45 minutes Updated: Feb 14, 2018 Klaus-Peter Schlotter kps@de.ibm.com Version 1 Overview

More information

Advantages: simple, quick to get started, perfect for simple forms, don t need to know how form model objects work

Advantages: simple, quick to get started, perfect for simple forms, don t need to know how form model objects work 1 Forms 1.1 Introduction You cannot enter data in an application without forms. AngularJS allowed the user to create forms quickly, using the NgModel directive to bind the input element to the data in

More information

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space.

HTML Summary. All of the following are containers. Structure. Italics Bold. Line Break. Horizontal Rule. Non-break (hard) space. HTML Summary Structure All of the following are containers. Structure Contains the entire web page. Contains information

More information

Front-End UI: Bootstrap

Front-End UI: Bootstrap Responsive Web Design BootStrap Front-End UI: Bootstrap Responsive Design and Grid System Imran Ihsan Assistant Professor, Department of Computer Science Air University, Islamabad, Pakistan www.imranihsan.com

More information

Create First Web Page With Bootstrap

Create First Web Page With Bootstrap Bootstrap : Responsive Design Create First Web Page With Bootstrap 1. Add the HTML5 doctype Bootstrap uses HTML elements and CSS properties that require the HTML5 doctype. 2. Bootstrap 3 is mobile-first

More information

if(! list.contains(list.collect(params,'key'),'title')){ <div style="font-weight:bold;color:red;">"warning: A title field must be assigned.

if(! list.contains(list.collect(params,'key'),'title')){ <div style=font-weight:bold;color:red;>warning: A title field must be assigned. /** Author: Blake Harms Version 2.9 See: http://developer.mindtouch.com/app_catalog/ Integrated_Bug_and_Issue_Tracker on 2.9 added performance tunning posted by Sego on this blog post: http://forums.developer.mindtouch.com/

More information

Description: This feature will enable user to send messages from website to phone number.

Description: This feature will enable user to send messages from website to phone number. Web to Phone text message Description: This feature will enable user to send messages from website to phone number. User will use this feature and can send messages from website to phone number, this will

More information

Basic CSS Lecture 17

Basic CSS Lecture 17 Basic CSS Lecture 17 Robb T. Koether Hampden-Sydney College Wed, Feb 21, 2018 Robb T. Koether (Hampden-Sydney College) Basic CSSLecture 17 Wed, Feb 21, 2018 1 / 22 1 CSS 2 Background Styles 3 Text Styles

More information

Making a live edit contact list with Coldbox REST & Vue.js

Making a live edit contact list with Coldbox REST & Vue.js Tweet Making a live edit contact list with Coldbox REST & Vue.js Scott Steinbeck Mar 28, 2016 Today we will be making a contact database that you can quickly and easily manage using ColdBox and Vue.js.

More information

1.2 * allow custom user list to be passed in * publish changes to a channel

1.2 * allow custom user list to be passed in * publish changes to a channel ToDoList /*** USAGE: ToDoList() Embed a TODO-list into a page. The TODO list allows users to cre Items that are due are highlighted in yellow, items passed due ar list can be added to any page. The information

More information

ToDoList. 1.2 * allow custom user list to be passed in * publish changes to a channel ***/

ToDoList. 1.2 * allow custom user list to be passed in * publish changes to a channel ***/ /*** USAGE: ToDoList() Embed a TODO-list into a page. The TODO list allows users to create new items, assign them to other users, and set deadlines. Items that are due are highlighted in yellow, items

More information

Programming web design MICHAEL BERNSTEIN CS 247

Programming web design MICHAEL BERNSTEIN CS 247 Programming web design MICHAEL BERNSTEIN CS 247 Today: how do I make it?! All designers need a medium. Napkin sketches aren t enough.! This week: core concepts for implementing designs on the web! Grids!

More information

Introduction to Computer Science Web Development

Introduction to Computer Science Web Development Introduction to Computer Science Web Development Flavio Esposito http://cs.slu.edu/~esposito/teaching/1080/ Lecture 14 Lecture outline Discuss HW Intro to Responsive Design Media Queries Responsive Layout

More information

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013

The Hypertext Markup Language (HTML) Part II. Hamid Zarrabi-Zadeh Web Programming Fall 2013 The Hypertext Markup Language (HTML) Part II Hamid Zarrabi-Zadeh Web Programming Fall 2013 2 Outline HTML Structures Tables Forms New HTML5 Elements Summary HTML Tables 4 Tables Tables are created with

More information

CSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax

CSS CSS how to display to solve a problem External Style Sheets CSS files CSS Syntax CSS CSS stands for Cascading Style Sheets Styles define how to display HTML elements Styles were added to HTML 4.0 to solve a problem External Style Sheets can save a lot of work External Style Sheets

More information

BOOTSTRAP FORMS. Wrap labels and controls in a <div> with class.form-group. This is needed for optimum spacing.

BOOTSTRAP FORMS. Wrap labels and controls in a <div> with class.form-group. This is needed for optimum spacing. BOOTSTRAP FORMS http://www.tutorialspoint.com/bootstrap/bootstrap_forms.htm Copyright tutorialspoint.com In this chapter, we will study how to create forms with ease using Bootstrap. Bootstrap makes it

More information

User manual Scilab Cloud API

User manual Scilab Cloud API User manual Scilab Cloud API Scilab Cloud API gives access to your engineering and simulation knowledge through web services which are accessible by any network-connected machine. Table of contents Before

More information

주소록만들기 주소록. Input 페이지 Edit 페이지 Del 페이지

주소록만들기 주소록. Input 페이지 Edit 페이지 Del 페이지 주소록프로젝트 주소록만들기 주소록 List 페이지 Input 페이지 Edit 페이지 Del 페이지 Inputpro 페이지 Editpro 페이지 Address_Input.html 주소입력페이지 td,li,input{font-size:9pt} 주소입력

More information

Summary 4/5. (contains info about the html)

Summary 4/5. (contains info about the html) Summary Tag Info Version Attributes Comment 4/5

More information

Session 5. Web Page Generation. Reading & Reference

Session 5. Web Page Generation. Reading & Reference Session 5 Web Page Generation 1 Reading Reading & Reference https://en.wikipedia.org/wiki/responsive_web_design https://www.w3schools.com/css/css_rwd_viewport.asp https://en.wikipedia.org/wiki/web_template_system

More information

Integrating Spring Boot with MySQL

Integrating Spring Boot with MySQL Integrating Spring Boot with MySQL Introduction For this course we will be using MySQL as the database for permanent data storage. We will use Java Persistence API (JPA) as an Object Relation Map (ORM)

More information

CSS: Lists, Tables and the Box Model

CSS: Lists, Tables and the Box Model CSS: Lists, Tables and the Box Model CISC 282 September 20, 2017 Basics of CSS Style Name classes semantically What the style is intended for not what it does Define and apply styles efficiently Choose

More information

Santa Tracker. Release Notes Version 1.0

Santa Tracker. Release Notes Version 1.0 Santa Tracker Release Notes Version 1.0 App Parameters and Styling In your Caspio account, go to the App s Overview screen and on the right sidebar click on Manage in the App Parameters area. Edit any

More information

HTML HTML5. DOM(Document Object Model) CSS CSS

HTML HTML5. DOM(Document Object Model) CSS CSS HTML HTML5 DOM(Document Object Model) CSS CSS HTML html img jpg png gif jpg png gif

More information

c122sep2214.notebook September 22, 2014

c122sep2214.notebook September 22, 2014 This is using the border attribute next we will look at doing the same thing with CSS. 1 Validating the page we just saw. 2 This is a warning that recommends I use CSS. 3 This caused a warning. 4 Now I

More information

ADDING INPUTS FORM FACTORY V2

ADDING INPUTS FORM FACTORY V2 1 Example input This tutorial will guide you through creation of a simple text input field. I will use form-factorysnippets-extension module but you can use any module with dependency on Form Factory.

More information

CSS (Cascading Style Sheets)

CSS (Cascading Style Sheets) CSS (Cascading Style Sheets) CSS (Cascading Style Sheets) is a language used to describe the appearance and formatting of your HTML. It allows designers and users to create style sheets that define how

More information

Responsive Web Design and Bootstrap MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University

Responsive Web Design and Bootstrap MIS Konstantin Bauman. Department of MIS Fox School of Business Temple University Responsive Web Design and Bootstrap MIS 2402 Konstantin Bauman Department of MIS Fox School of Business Temple University Exam 3 (FINAL) Date: 12/06/18 four weeks from now! JavaScript, jquery, Bootstrap,

More information

Lecture 7. Action View, Bootstrap & Deploying 1 / 40

Lecture 7. Action View, Bootstrap & Deploying 1 / 40 Lecture 7 Action View, Bootstrap & Deploying 1 / 40 Homeworks 5 & 6 Homework 5 was graded Homework 6 was due last night Any questions? 2 / 40 How would you rate the di culty of Homework 6? Vote at http://pollev.com/cis196776

More information

HTML and CSS COURSE SYLLABUS

HTML and CSS COURSE SYLLABUS HTML and CSS COURSE SYLLABUS Overview: HTML and CSS go hand in hand for developing flexible, attractively and user friendly websites. HTML (Hyper Text Markup Language) is used to show content on the page

More information

UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2016 EXAMINATIONS. CSC309H1 S Programming on the Web Instructor: Ahmed Shah Mashiyat

UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2016 EXAMINATIONS. CSC309H1 S Programming on the Web Instructor: Ahmed Shah Mashiyat UNIVERSITY OF TORONTO Faculty of Arts and Science APRIL 2016 EXAMINATIONS CSC309H1 S Programming on the Web Instructor: Ahmed Shah Mashiyat Duration - 2 hours Aid Sheet: Both side of one 8.5 x 11" sheet

More information

Wireframe :: tistory wireframe tistory.

Wireframe :: tistory wireframe tistory. Page 1 of 45 Wireframe :: tistory wireframe tistory Daum Tistory GO Home Location Tags Media Guestbook Admin 'XHTML+CSS' 7 1 2009/09/20 [ ] XHTML CSS - 6 (2) 2 2009/07/23 [ ] XHTML CSS - 5 (6) 3 2009/07/17

More information

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1

Make a Website. A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Make a Website A complex guide to building a website through continuing the fundamentals of HTML & CSS. Created by Michael Parekh 1 Overview Course outcome: You'll build four simple websites using web

More information

Bootstrap 1/20

Bootstrap 1/20 http://getbootstrap.com/ Bootstrap 1/20 MaxCDN

More information

COMS 359: Interactive Media

COMS 359: Interactive Media COMS 359: Interactive Media Agenda Project #3 Review Forms (con t) CGI Validation Design Preview Project #3 report Who is your client? What is the project? Project Three action= http://...cgi method=

More information

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS

HTML TAG SUMMARY HTML REFERENCE 18 TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES TAG/ATTRIBUTE DESCRIPTION PAGE REFERENCES MOST TAGS MOST TAGS CLASS Divides tags into groups for applying styles 202 ID Identifies a specific tag 201 STYLE Applies a style locally 200 TITLE Adds tool tips to elements 181 Identifies the HTML version

More information

Signs of Spring App. Release Notes Version 1.0

Signs of Spring App. Release Notes Version 1.0 Signs of Spring App Release Notes Version 1.0 App Parameters and Styling In your Caspio account, go to the App s Overview screen. On the right sidebar, click on Manage in the App Parameters area. Edit

More information

Copyright 2011 Sakun Sharma

Copyright 2011 Sakun Sharma Maintaining Sessions in JSP We need sessions for security purpose and multiuser support. Here we are going to use sessions for security in the following manner: 1. Restrict user to open admin panel. 2.

More information

Technical Guide Login Page Customization

Technical Guide Login Page Customization Released: 2017-11-15 Doc Rev No: R2 Copyright Notification Edgecore Networks Corporation Copyright 2019 Edgecore Networks Corporation. The information contained herein is subject to change without notice.

More information

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application.

As we design and build out our HTML pages, there are some basics that we may follow for each page, site, and application. Extra notes - Client-side Design and Development Dr Nick Hayward HTML - Basics A brief introduction to some of the basics of HTML. Contents Intro element add some metadata define a base address

More information

BIT-Pre-Semester Web Engineering 1

BIT-Pre-Semester Web Engineering 1 1707 Department of Examination Earth University College BIT-Pre-Semester Web Engineering 1 11402 2017.12.23 (10.00am 12.00pm) Mid Examination Proper Essay Paper -----------------------------------------------------------------------------------------------------------------------------------------------------------

More information

Web Engineering CSS. By Assistant Prof Malik M Ali

Web Engineering CSS. By Assistant Prof Malik M Ali Web Engineering CSS By Assistant Prof Malik M Ali Overview of CSS CSS : Cascading Style Sheet a style is a formatting rule. That rule can be applied to an individual tag element, to all instances of a

More information

Cascading style sheets, HTML, DOM and Javascript

Cascading style sheets, HTML, DOM and Javascript CSS Dynamic HTML Cascading style sheets, HTML, DOM and Javascript DHTML Collection of technologies forming dynamic clients HTML (content content) DOM (data structure) JavaScript (behaviour) Cascading Style

More information

Session 4. Style Sheets (CSS) Reading & References. A reference containing tables of CSS properties

Session 4. Style Sheets (CSS) Reading & References.   A reference containing tables of CSS properties Session 4 Style Sheets (CSS) 1 Reading Reading & References en.wikipedia.org/wiki/css Style Sheet Tutorials www.htmldog.com/guides/cssbeginner/ A reference containing tables of CSS properties web.simmons.edu/~grabiner/comm244/weekthree/css-basic-properties.html

More information

ゼミ Wiki の再構築について 資料編 加納さおり

ゼミ Wiki の再構築について 資料編 加納さおり Wiki [ Fukuda Semi Wiki] [ 2 wiki] [ 3 ] [ 4 ] [ 5 ] [ 6 ] [ 7 ] [ 8 ] [ 9 ] [ 10 ] [ 11 ] [ 12 ] [ 13 ] [ 14 Menu1] [ 15 Menu2] [ 16 Menu3] [ 17 wiki Menu] [ 18 TOP ] [ 19 ] [ 20 ] [ 20] [ 21 ] [ 22 (

More information

Pliki.tpl. scripts/flash_messages.tpl. scripts/panel/index.tpl. Dokumentacja zmian plików graficznych: rwd clickshop Wersja zmian:

Pliki.tpl. scripts/flash_messages.tpl. scripts/panel/index.tpl. Dokumentacja zmian plików graficznych: rwd clickshop Wersja zmian: Dokumentacja zmian plików graficznych: rwd clickshop Wersja zmian: 1.8.13-1.8.14 Pliki.tpl scripts/flash_messages.tpl 2 {if $flash_messages.error @count > 0 $flash_messages.warning @count > 0 $flash_messages.info

More information

PlantVisorPRO Plant supervision

PlantVisorPRO Plant supervision PlantVisorPRO Plant supervision Software Development Kit ver. 2.0 Integrated Control Solutions & Energy Savings 2 Contents 1. Key... 5 2. Context... 5 3. File Structure... 6 4. Log Structure and error

More information

Form Overview. Form Processing. The Form Element. CMPT 165: Form Basics

Form Overview. Form Processing. The Form Element. CMPT 165: Form Basics Form Overview CMPT 165: Form Basics Tamara Smyth, tamaras@cs.sfu.ca School of Computing Science, Simon Fraser University October 26, 2011 A form is an HTML element that contains and organizes objects called

More information

Web Programming BootStrap Unit Exercises

Web Programming BootStrap Unit Exercises Web Programming BootStrap Unit Exercises Start with the Notes packet. That packet will tell you which problems to do when. 1. Which line(s) are green? 2. Which line(s) are in italics? 3. In the space below

More information

Lab 1: Introducing HTML5 and CSS3

Lab 1: Introducing HTML5 and CSS3 CS220 Human- Computer Interaction Spring 2015 Lab 1: Introducing HTML5 and CSS3 In this lab we will cover some basic HTML5 and CSS, as well as ways to make your web app look and feel like a native app.

More information

Web UI. Survey of Front End Technologies. Web Challenges and Constraints. Desktop and mobile devices. Highly variable runtime environment

Web UI. Survey of Front End Technologies. Web Challenges and Constraints. Desktop and mobile devices. Highly variable runtime environment Web UI Survey of Front End Technologies Web UI 1 Web Challenges and Constraints Desktop and mobile devices - mouse vs. touch input, big vs. small screen Highly variable runtime environment - different

More information

Spring 2014 Interim. HTML forms

Spring 2014 Interim. HTML forms HTML forms Forms are used very often when the user needs to provide information to the web server: Entering keywords in a search box Placing an order Subscribing to a mailing list Posting a comment Filling

More information

AngularJS Introduction

AngularJS Introduction AngularJS Introduction Mendel Rosenblum AngularJS JavaScript framework for writing web applications Handles: DOM manipulation, input validation, server communication, URL management, etc. Considered opinionated

More information

Web Design and Development ACS Chapter 12. Using Tables 11/23/2017 1

Web Design and Development ACS Chapter 12. Using Tables 11/23/2017 1 Web Design and Development ACS-1809 Chapter 12 Using Tables 11/23/2017 1 Using Tables Understand the concept and uses of tables in web pages Create a basic table structure Format tables within web pages

More information

Lab Introduction to Cascading Style Sheets

Lab Introduction to Cascading Style Sheets Lab Introduction to Cascading Style Sheets For this laboratory you will need a basic text editor and a browser. In the labs, winedt or Notepad++ is recommended along with Firefox/Chrome For this activity,

More information

thymeleaf #thymeleaf

thymeleaf #thymeleaf thymeleaf #thymeleaf Table of Contents About 1 Chapter 1: Getting started with thymeleaf 2 Remarks 2 Versions 2 Examples 2 Configuration 2 Using checkboxes 3 Ajax form submition with Jquery 4 Replacing

More information

Introduction to using HTML to design webpages

Introduction to using HTML to design webpages Introduction to using HTML to design webpages #HTML is the script that web pages are written in. It describes the content and structure of a web page so that a browser is able to interpret and render the

More information

CE419 Web Programming. Session 3: HTML (contd.), CSS

CE419 Web Programming. Session 3: HTML (contd.), CSS CE419 Web Programming Session 3: HTML (contd.), CSS 1 Forms 2 Forms Provides a way to interact with users. Not useful without a server-side counterpart. 3 From Elements

More information

Building JSR-286 portlets using AngularJS and IBM Web Experience Factory

Building JSR-286 portlets using AngularJS and IBM Web Experience Factory Building JSR-286 portlets using AngularJS and IBM Web Experience Factory Overview This article illustrates how to build JSR-286 portlets using AngularJS framework and IBM Web Experience Factory (WEF) for

More information

CSS: Layout Part 2. clear. CSS for layout and formatting: clear

CSS: Layout Part 2. clear. CSS for layout and formatting: clear CSS: Layout Part 2 Robert A. Fulkerson College of Information Science and Technology http://www.ist.unomaha.edu/ University of Nebraska at Omaha http://www.unomaha.edu/ CSS for layout and formatting: clear

More information

3. Each of these mark examples contains an error. a. <input name= country value= Your country here. /> b. <checkbox name= color value= teal />

3. Each of these mark examples contains an error. a. <input name= country value= Your country here. /> b. <checkbox name= color value= teal /> 1. Decide whether each of these forms should be sent via the GET or POST method: A form for accessing your bank account online A form for sending t-shirt artwork to the printer A form for searching archived

More information

APACHE SLING & FRIENDS TECH MEETUP BERLIN, SEPTEMBER Hypermedia API Tools for Sling (HApi) Andrei Dulvac, Adobe

APACHE SLING & FRIENDS TECH MEETUP BERLIN, SEPTEMBER Hypermedia API Tools for Sling (HApi) Andrei Dulvac, Adobe APACHE SLING & FRIENDS TECH MEETUP BERLIN, 28-30 SEPTEMBER 2015 Hypermedia API Tools for Sling (HApi) Andrei Dulvac, Adobe ToC HatEoAS, Hypermedia formats, and semantic data Hypermedia API tools (HApi)

More information

CSS (Cascading Style Sheets): An Overview

CSS (Cascading Style Sheets): An Overview CSS (Cascading Style Sheets): An Overview CSS (Cascading Style Sheets) is a language used to describe the appearance and formatting of your HTML. It allows designers and users to create style sheets that

More information

LAMPIRAN. Index.php. <?php. unset($_session["status"]); //session_destroy(); //session_destroy();

LAMPIRAN. Index.php. <?php. unset($_session[status]); //session_destroy(); //session_destroy(); LAMPIRAN Index.php unset($_session["status"]); //session_destroy(); //session_destroy();?>

More information

CSS Scripting and Computer Environment - Lecture 09

CSS Scripting and Computer Environment - Lecture 09 CSS Scripting and Computer Environment - Lecture 09 Saurabh Barjatiya International Institute Of Information Technology, Hyderabad 1 st October, 2011 Contents 1 CSS stands for Cascading Style Sheets Styles

More information

COMP1000 Mid-Session Test 2017s1

COMP1000 Mid-Session Test 2017s1 COMP1000 Mid-Session Test 2017s1 Total Marks: 45 Duration: 55 minutes + 10 min reading time This examination has three parts: Part 1: 15 Multiple Choice Questions (15 marks /45) Part 2: Practical Excel

More information

Source. Developer Guide / forms

Source. Developer Guide / forms Developer Guide / forms Controls (input, select, textarea) are a way for user to enter data. Form is a collection of controls for the purpose of grouping related controls together. Form and controls provide

More information

Website Development with HTML5, CSS and Bootstrap

Website Development with HTML5, CSS and Bootstrap Contact Us 978.250.4983 Website Development with HTML5, CSS and Bootstrap Duration: 28 hours Prerequisites: Basic personal computer skills and basic Internet knowledge. Course Description: This hands on

More information

CSS. https://developer.mozilla.org/en-us/docs/web/css

CSS. https://developer.mozilla.org/en-us/docs/web/css CSS https://developer.mozilla.org/en-us/docs/web/css http://www.w3schools.com/css/default.asp Cascading Style Sheets Specifying visual style and layout for an HTML document HTML elements inherit CSS properties

More information

Hoster: openload.co - Free PLUGIN_DEFECT-Error: 08d a1830b60ab13ddec9a2ff6

Hoster: openload.co - Free PLUGIN_DEFECT-Error: 08d a1830b60ab13ddec9a2ff6 JDownloader - Bug #80273 Bug # 75914 (Closed): Hoster: openload.co - Free Hoster: openload.co - Free PLUGIN_DEFECT-Error: 08d9453425a1830b60ab13ddec9a2ff6 08/18/2016 02:13 AM - StatServ Status: Closed

More information

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3

Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3 Multimedia Systems and Technologies Lab class 6 HTML 5 + CSS 3 Instructions to use the laboratory computers (room B2): 1. If the computer is off, start it with Windows (all computers have a Linux-Windows

More information

Integrating the Quotation page with your site

Integrating the Quotation page with your site Integrating the with your site Introduction Until June 2014, for customers to obtain a quote for your service, it was necessary to redirect the customer to the Instant-Quote.co site. This is no longer

More information

ICT IGCSE Practical Revision Presentation Web Authoring

ICT IGCSE Practical Revision Presentation Web Authoring 21.1 Web Development Layers 21.2 Create a Web Page Chapter 21: 21.3 Use Stylesheets 21.4 Test and Publish a Website Web Development Layers Presentation Layer Content layer: Behaviour layer Chapter 21:

More information

AngularJS Examples pdf

AngularJS Examples pdf AngularJS Examples pdf Created By: Umar Farooque Khan 1 Angular Directive Example This AngularJS Directive example explain the concept behind the ng-app, ng-model, ng-init, ng-model, ng-repeat. Directives

More information

NukaCode - Front End - Bootstrap Documentation

NukaCode - Front End - Bootstrap Documentation Nuka - Front End - Bootstrap Documentation Release 1.0.0 stygian July 04, 2015 Contents 1 Badges 3 1.1 Links................................................... 3 1.2 Installation................................................

More information

/* ========================================================================== PROJECT STYLES

/* ========================================================================== PROJECT STYLES html { box-sizing: border-box; *, *:before, *:after { box-sizing: inherit; img { max-width: 100%; border: 0; audio, canvas, iframe, img, svg, video { vertical-align: middle; /* Remove gaps between elements

More information

Oliver Pott HTML XML. new reference. Markt+Technik Verlag

Oliver Pott HTML XML. new reference. Markt+Technik Verlag Oliver Pott HTML XML new reference Markt+Technik Verlag Inhaltsverzeichnis Übersicht 13 14 A 15 A 16 ABBR 23 ABBR 23 ACCEPT 26 ACCEPT-CHARSET

More information

Scriptaculous Stuart Halloway

Scriptaculous Stuart Halloway Scriptaculous Stuart Halloway stu@thinkrelevance.com Copyright 2007, Relevance, Inc. Licensed only for use in conjunction with Relevance-provided training For permission to use, send email to contact@thinkrelevance.com

More information

Input and Validation. Mendel Rosenblum. CS142 Lecture Notes - Input

Input and Validation. Mendel Rosenblum. CS142 Lecture Notes - Input Input and Validation Mendel Rosenblum Early web app input: HTTP form tag Product: Deluxe:

More information

PUBLISHER SPECIFIC CSS RULES

PUBLISHER SPECIFIC CSS RULES PUBLISHER SPECIFIC CSS RULES Solita Oy Helsinki Tampere Oulu 26.1.2016 2 (24) Document History Version Date Author Description 0.1 August 17, 2015 J. Similä First draft 0.2 January 26, 2015 A. Autio Fixed

More information

Creating a Job Aid using HTML and CSS

Creating a Job Aid using HTML and CSS Creating a Job Aid using HTML and CSS In this tutorial we will apply what we have learned about HTML and CSS. We will create a web page containing a job aid about how to buy from a vending machine. Optionally,

More information

ART170. The ART170 Final Project

ART170. The ART170 Final Project The Final Project TABLE OF CONTENTS Define the site and set up the layout pg. 2 Ordering and externalizing the style sheet pg. 2 Creating the template pg. 3 Generating pages from the template pg. 4 Updating

More information

Zen Garden. CSS Zen Garden

Zen Garden. CSS Zen Garden CSS Patrick Behr CSS HTML = content CSS = display It s important to keep them separated Less code in your HTML Easy maintenance Allows for different mediums Desktop Mobile Print Braille Zen Garden CSS

More information

HTML 5 Tables and Forms

HTML 5 Tables and Forms Tables for Tabular Data Display HTML 5 Tables and Forms Tables can be used to represet information in a two-dimensional format. Typical table applications include calendars, displaying product catelog,

More information