pageEncoding="EUC-KR"%> import="javax.sql.*" import="javax.naming.*"%> http://www.w3.org/TR/html4/loose.dtd"> //๋ณ์ ์ค๋น DataSource ds = null; Connection con = null; try{ //๋ค์ด๋ฐ ์๋น์ค์ ์ ๊ทผ Context ctx = new InitialContext(); //Java ์์์ผ๋ก ์ ๊ทผ Context envCtx = (Context)ctx.lookup("java:/comp/env"); //์ฐ๋ฆฌ๊ฐ ์ค์ ํ ์์์ ๊ฒ์ ds = (DataSource)envCtx.lookup("jdbc/mysql"); //์ปค๋ฅ์ ํ ๊ฐ์ฒด..
package test; //servlet 1 import 3๊ฐ import java.io.*; import javax.servlet.*; import javax.servlet.http.*; //servlet 2 ๋ฐ๋์ public ํด๋์ค๋ก ์์ฑ public class HelloWorld //servlet 3 HttpServlet์ ์์๋ฐ๊ธฐ extends HttpServlet { //servlet 4 ์ ์ก๋ฐฉ์์ ๋ฐ๋ผ doXXX() ๋ฉ์๋์์ฑ // get ๋ฐฉ์ -> doGet() // post๋ฐฉ์ -> doPost() // ์ ์ก๋ฐฉ์๊ณผ ์๊ด์๋ค๋ฉด -> service() //์๋์ doGet ๋ฉ์๋๋ ๋ฉ์๋๋ฅผ ์์ฑํ๋ ๊ฒ์ด ์๋ ์ค๋ฒ๋ผ์ด๋ฉ ใ ใ public void doGet(HttpServletRequest..
package study; import javax.swing.*; public class SwingTest { public static void main(String[] ar) { int answer = (int) (Math.random() * 10 ) + 1; int input =0 ; String temp = ""; int count = 0 ; int limitCnt = 5; do { count++; temp = JOptionPane.showInputDialog("1~10๊น์ง์ ์ซ์๋ฅผ ์ ๋ ฅํ์์ค ๊ธฐํ๋ 5" + " ๋๋ด๋ ค๋ฉด -1์ ์ ๋ ฅํ์ธ์."); if(temp == null || temp.equals("-1")) break; System.out.println("์ ๋ ฅ๊ฐ : " + temp); inpu..
package study; import java.io.*; class Lotto { int inwon; int[] ar = new int[6]; public void input() throws IOException { BufferedReader in = new BufferedReader ( new InputStreamReader (System.in) ); System.out.print("๋ช๊ฒ์ ํ์ค๋์? "); inwon = Integer.parseInt(in.readLine()); } public void numCreate() { int lottoNum; int cnt = 0; while(true) { int duple = 0; lottoNum = (int)(Math.random() * 45 + 1);..
package jbank; import java.io.*; public class AccountMain { public static void main(String[] ar) throws NumberFormatException, IOException { AccountManager jbank = new AccountManager(); BufferedReader in = new BufferedReader (new InputStreamReader (System.in)); while(true) { jbank.printMenu(); System.out.print("์ ํ: "); int choice = Integer.parseInt(in.readLine()); switch (choice) { case 1: jbank..
- Total
- Today
- Yesterday
- ๋ด๋๋ด์ฐ
- JS
- 8๋ง์ผ
- ์ธํจ์ด
- ์น์์ด์ ์
- asp
- php
- JavaScript
- MySQL
- ์๋ฆฌ
- 2ne1
- jQuery
- ๋ฉ๋ฐฐํ
- JSP
- ๊ฒฝ์ ์ฉ์ด
- Ajax
- ๋ณต๊ทผ์ด๋
- I Don't Care
- EL
- ์๋ธ๋ฆฟ
- ์๋ฐ์คํฌ๋ฆฝํธ
- ๊ธฐํ
- ์นด๋ฐ์จ๋ผ์ธ
- ๋์ค
- JSON
- Java
- JSTL
- Servlet
- ํจ์
- ์์์ฌ์ด๋
| ์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
|---|---|---|---|---|---|---|
| 1 | ||||||
| 2 | 3 | 4 | 5 | 6 | 7 | 8 |
| 9 | 10 | 11 | 12 | 13 | 14 | 15 |
| 16 | 17 | 18 | 19 | 20 | 21 | 22 |
| 23 | 24 | 25 | 26 | 27 | 28 | 29 |
| 30 |