본문 바로가기

web22

[JAVA] MVC패턴 - 파일 별 역할 1. java resurces   1.1 src        1.1.1  com.es.java.work        1.1.2  workcontroller.java        컨트롤러        1.1.3  workdao.java                   db 연결 및 컬럼값 접근        1.1.4  workservice.java.           기능(함수) 선언-인터페이스로 구현함, 협업을 위해 클래스 보기 쉽도록        1.1.5  workserviceimpl.java     기능(함수) 구현        1.1.6  workvo.java                      set/get 2. webcontent   2.1 common         2.1.1  css   .. 2021. 5. 18.
[Flask] SQLAlchemy 사용하여 학생테이블 출력하기 app.py파일을 실행하면 student_info.db 파일이 생성된다.     12345678910111213141516171819202122!DOCTYPE html>html>   body>      h3>Students - Flask SQLAlchemy example/h3>      hr/>      form action = "{{ request.path }}" method = "post">         label for = "name">Name/label>br>         input type = "text" name = "name" placeholder = "Name" />br>          label for = "city"">City         text" name = "city" pl.. 2020. 11. 25.
[Flask] 로그인 페이지, 로그인 성공 시 flash 메시지 출력하기 123456789101112131415161718192021!doctype html>html>   head>      title>Flask Message flashing/title>   /head>   body>        {% with messages = get_flashed_messages() %}         {% if messages %}            ul>               {% for mes in messages %}               li>{{ mes }}/li>               {% endfor %}            /ul>        {% endif %}        {% endwith %}                h1>Flask Message .. 2020. 11. 25.
[HTML] <ul> / <ol>, <li> , <i>, <b> 태그 1234567891011121314!DOCTYPE html>head>    meta charset="UTF-8">/head>body>    h2>식물원 관람 유의사항/h2>        ul>            li>i>입장권/i>에 게시된 b>관람요령/b>을 살펴보시기 바랍니다./li>            li>안내원의 안내에 따라주시기 바랍니다./li>            li>관람 지역 이외의 출입제한 지역은 출입을 금합니다./li>            li>식물이 삭제된 곳에 들어가지 마십시오./li>        /ul>/body>/html>Colored by Color Scripter 1234567891011121314!DOCTYPE html>head>    meta charset="UTF-.. 2020. 11. 24.
[HTML] <br>, &nbsp, &lt, &gt, &amp, &quot, &copy 1234567891011121314151617!DOCTYPE html>head>    meta charset="UTF-8">    title>제목 연습/title>/head>body>    안녕하세요.br>    반갑습니다.br>    열심히 HTML을 &nbsp;&nbsp;&nbsp;&nbsp;공부합시당 :) br>br>         br>&lt; 내용 &gt;     br> &amp;    br> &quot; 안녕!! &quot;    br> &copy;/body>/html>Colored by Color Scripter 2020. 11. 24.
[HTML] 제목 연습 : <h1> ~ <h6> 태그 1234567891011121314!DOCTYPE html>head>    meta charset="UTF-8">    title>제목 연습/title>/head>body>    h1>글자 제목/h1> 가 자동으로 됨.-->    h2>글자 제목/h2>    h3>글자 제목/h3>    h4>글자 제목/h4>    h5>글자 제목/h5>    h6>글자 제목/h6>/body>/html>Colored by Color Scripter 2020. 11. 24.
[Flask] input값에 따라 Pass, Fail 문자 출력하기 12345678910!doctype html>html>   body>      {% if marks>50 %}         h1> Your result is pass!/h1>      {% else %}         h1>Your result is fail/h1>      {% endif %}   /body>/html>   123456789from flask import Flask, render_templateapp = Flask(__name__) @app.route('/input/')def input_name(score):   return render_template('result.html', marks = score) if __name__ == '__main__':   app.run(host='0.. 2020. 11. 24.
[Flask] SQLite 예제 Flask – SQLite - TutorialspointFlask – SQLite Python has an in-built support for SQlite. SQlite3 module is shipped with Python distribution. For a detailed tutorial on using SQLite database in Python, please refer to this link. In this section we shall see how a Flask application intewww.tutorialspoint.com     1234567891011121314import sqlite3 conn = sqlite3.connect('database.db')print('데이터베이스.. 2020. 9. 24.
[Flask] File Uploading 예제 (파일 제출 안할 경우 flash로 에러메시지 출력) Uploading Files — Flask Documentation (1.1.x)Uploading Files Ah yes, the good old problem of file uploads. The basic idea of file uploads is actually quite simple. It basically works like this: A tag is marked with enctype=multipart/form-data and an is placed in that form. The application accesses thflask.palletsprojects.com  Flask – File Uploading - TutorialspointFlask – File Uploading Handli.. 2020. 9. 24.
[Flask] Message Flashing 예제 Flask – Message Flashing - TutorialspointFlask – Message Flashing A good GUI based application provides feedback to a user about the interaction. For example, the desktop applications use dialog or message box and JavaScript uses alerts for similar purpose. Generating such informative messageswww.tutorialspoint.com     123456789101112131415161718192021222324from flask import Flask, flash, redi.. 2020. 9. 24.