'Programming'에 해당되는 글 1721건

  1. 2014.05.17 CRUD
  2. 2014.05.15 post 방식과 get 방식의 차이점(cache)
  3. 2014.05.15 java unchecked/checked exception
  4. 2014.05.15 css box model
  5. 2014.05.11 sql designer(web)
  6. 2014.05.09 Class.forName
  7. 2014.05.09 JDNI - Java Directory & Naming Interface
  8. 2014.05.08 JSP 서블릿 매핑
  9. 2014.05.08 jdk 1.5 - annotation / @
  10. 2014.04.30 EL(Expression Language)$와 #
CRUD는
Create(생성), Read(읽기), Update(갱신), Delete(삭제)

Insert / Select / Update / Delete로 대변되는
4개의 데이터베이스 관련 기본 오퍼레이션을 이야기한다.

[링크 :  http://ko.wikipedia.org/wiki/CRUD]

'Programming > 데이터베이스' 카테고리의 다른 글

데이터베이스 순환참조  (0) 2017.05.20
데이터베이스 1:n 관계 구현  (0) 2016.02.29
데이터베이스 - 키 관련  (0) 2014.04.28
카티젼 프로덕트, join  (0) 2014.04.26
database 1:N 구성?  (0) 2014.04.15
Posted by 구차니
Programming/web 관련2014. 5. 15. 17:10
구글에서 검색을 해보면
왜이렇게 미친듯이 get 방식으로 길게 인자를 넘겨주나 싶었는데
캐시 정책에서 차이가 있기 때문에
대규모 요청이 들어오는 검색 엔진에서는
post로 캐싱도 못하고 노가다(?) 하는 것 보다는
get 방식으로 URL을 노출 시키고 캐싱으로 커버하는게 유리할 것으로 생각된다.


[링크 : http://www.w3schools.com/tags/ref_httpmethods.asp]

'Programming > web 관련' 카테고리의 다른 글

부트스트랩 - 웹개발 프레임워크  (0) 2014.07.07
jsp / php 기본 문법 비교  (0) 2014.07.07
sql designer(web)  (0) 2014.05.11
호스팅어 / 무료 웹 호스팅  (4) 2014.04.27
ie8 과 크롬의 html 태그 파싱 차이점  (0) 2014.04.10
Posted by 구차니
Programming/Java2014. 5. 15. 11:06
이해한 개념이 맞으려나
checked exception은 컴파일러나 jvm에 의해 말그대로 '걸러낸/확인된' 
자동화된 예외처리 방법이고 자바에서는 예외처리하도록 강제하기 위해
예외처리하지 않으면 에러라 간주하고 진행되지 않는다

unchecked 는
컴파일러에의해 검사되지않은.
개발자에 의해 예상되는 에러들을 미리 처리하는 개념이다

둘 다 예외처리이지만
개발환경(컴파일러/실행환경) 에 의해 도구적/ 시스템적으로 잡냐
개발자에 의해 수작업으로 잡냐의 차이인듯?



자바에서 exception class 에 있는 예외라도
unchecked exception이 있을수 있다. 아니 의외로 많다?

1) Unchecked Exception
The exceptions that are not checked at compile time are called unchecked exceptions, classes that extends RuntimeException comes under unchecked exceptions. Examples of some unchecked exceptions are listed below.

2) Checked Exceptions
Exceptions that are checked at compile-time are called checked exceptions, in Exception hierarchy all classes that extends Exception class except UncheckedException comes under checked exception category. 

[링크 : http://www.beingjavaguys.com/2013/04/exception-handling-in-java-exception.html] 

 A checked exception is an exception that must be either caught or declared in a method where it can be thrown. For example, the java.io.IOExceptionis a checked exception. To understand what is a checked exception, consider the following code:

[링크 : http://en.wikibooks.org/wiki/Java_Programming/Checked_Exceptions] 
 
 Unchecked, uncaught or runtime exceptions are exceptions that are not required to be caught or declared, even if it is allowed to do so. So a method can throw a runtime exception, even if this method is not supposed to throw exceptions. For example, ConcurrentModificationException is an unchecked exception.

The unchecked exceptions can only be the RuntimeException and its subclasses, and the class Error and its subclasses. All other exception classes must be handled, otherwise the compiler gives an error.

Sometime it is desirable to catch all exception for logging purposes, then throw it back on. For example, in servlet programming when application server calls the server doPost(), we want to monitor that no exception even runtime exception happened during serving the request. The application has its own logging separate from the server logging. The runtime exceptions would just go through without detecting it by the application. The following code would check all exceptions, log them, and throw it back again.

[링크 : http://en.wikibooks.org/wiki/Java_Programming/Unchecked_Exceptions 

'Programming > Java' 카테고리의 다른 글

predefined annotation /java  (0) 2014.06.27
JUnit tutorial  (0) 2014.06.27
Class.forName  (0) 2014.05.09
JDNI - Java Directory & Naming Interface  (0) 2014.05.09
jdk 1.5 - annotation / @  (0) 2014.05.08
Posted by 구차니
Programming/css2014. 5. 15. 11:05
css는 box model 을 기반으로 한다
친숙(?) 한 margin border padding으로 간격조절이 되는데
css 는 출력될 요소들을 하나의 박스에 가둬두고
박스의 안/밖간격을 통해 제어하게 된다.

크롬크롬~ ㅋ


[링크 : http://www.codeproject.com/Articles/227840/CSS-Basics-The-Box-Model-Margin-and-Padding]

'Programming > css' 카테고리의 다른 글

CSS / JS 파일 용량 줄이기  (0) 2015.09.18
css selector  (0) 2015.09.14
css 관련  (4) 2015.09.08
크롬과 IE에서 CSS 차이점 - body / background-color  (2) 2011.03.09
CSS Naked day!  (2) 2009.04.09
Posted by 구차니
Programming/web 관련2014. 5. 11. 17:09
웹 데모에서는 일단.. php-mysql만 가능하다.


테이블을 생성하고 필드를 생성하고


폴린키로 사용할 필드(즉, 다른 테이블의 시퀀스/autoincrement)를 누를경우 활성화 되는
Create foreign key / connect foreign key


connect의 경우 시퀀스 -> 연결할 키의 순서로 해주면된다.


db table 생성도 척척!
썩 나쁘지는 않아 보인다.


[링크 : http://ondras.zarovi.cz/sql/]
[링크 : https://code.google.com/p/wwwsqldesigner/]

'Programming > web 관련' 카테고리의 다른 글

jsp / php 기본 문법 비교  (0) 2014.07.07
post 방식과 get 방식의 차이점(cache)  (0) 2014.05.15
호스팅어 / 무료 웹 호스팅  (4) 2014.04.27
ie8 과 크롬의 html 태그 파싱 차이점  (0) 2014.04.10
NoSQL  (0) 2014.04.09
Posted by 구차니
Programming/Java2014. 5. 9. 15:26
forNameI() 메소드는
String 형으로 클래스 이름을 받아
조회한 후 클래스 객체를 받는 역활을 한다.

[링크 : http://docs.oracle.com/javase/7/docs/api/java/lang/Class.html]
[링크 : http://docs.oracle.com/javase/tutorial/reflect/class/classNew.html]
 

'Programming > Java' 카테고리의 다른 글

JUnit tutorial  (0) 2014.06.27
java unchecked/checked exception  (0) 2014.05.15
JDNI - Java Directory & Naming Interface  (0) 2014.05.09
jdk 1.5 - annotation / @  (0) 2014.05.08
java <-> c 상호호출  (0) 2014.03.25
Posted by 구차니
Programming/Java2014. 5. 9. 15:23
어떻게 보면.. Class.forName의 네트워크 버전에
LDAP 등과 통합하여 원격 객체에 대한 접속 방법을 제공해주는 녀석으로 생각된다.
이름이 괜히 비슷한 JNI랑은 상관없다.

[링크 : http://en.wikipedia.org/wiki/Java_Naming_and_Directory_Interface]
[링크 : http://docs.oracle.com/javase/7/docs/technotes/guides/jndi/index.htm]
[링크 : http://docs.oracle.com/javase/jndi/tutorial/]
[링크 : http://docs.oracle.com/javase/tutorial/jndi/]
[링크 : http://www.oracle.com/technetwork/java/jndi/index.html]




 

'Programming > Java' 카테고리의 다른 글

java unchecked/checked exception  (0) 2014.05.15
Class.forName  (0) 2014.05.09
jdk 1.5 - annotation / @  (0) 2014.05.08
java <-> c 상호호출  (0) 2014.03.25
java TCP/UCP socket  (0) 2014.03.25
Posted by 구차니
Programming/jsp2014. 5. 8. 22:57
스트럿츠라던가 JSTL이라던가 다른것과 연관없이
JSP 자체기능으로
특정 확장자에 대해서 접속시 실제 접속할 파일명이나 경로를 숨기고
다른 파일로 연결해주는 기능이다.

생각해보니..
네이버 같은데서 파일경로상 확장자가 nhn 이라던가
이런것들 모두 jsp로 처리한게 아닐까 싶은데..

약간의 트릭(?)으로
jsp가 아닌 php나 asp로 속이는 것도 당연히(!) 가능할 것으로 생각된다.

[링크 : http://uiandwe.tistory.com/332]
[링크 : http://docs.oracle.com/cd/E13222_01/wls/docs92/webapp/configureservlet.html ]

'Programming > jsp' 카테고리의 다른 글

ORM - Object-relational mapping  (0) 2014.05.20
apache velocity  (0) 2014.05.19
EL(Expression Language)$와 #  (0) 2014.04.30
POJO - Plain Old Java Object  (0) 2014.04.29
thread-safe singleton  (0) 2014.04.25
Posted by 구차니
Programming/Java2014. 5. 8. 17:05
spring이나 eclipse를 통해 개발시에 주석으로 간간히 보던 녀석인데
이녀석의 명칭이 바로 annotaion이라고 한다는걸 첨 알았...

아무튼 JDK 1.5부터 추가된 기능으로
spring framework에서 열심히(?) 사용하는 기능이라고 한다.

[링크 : http://docs.oracle.com/javase/tutorial/java/annotations/]
[링크 : http://docs.oracle.com/javase/7/docs/technotes/guides/language/annotations.html]

[링크 : http://www.nextree.co.kr/p5864/]

[링크 : http://docs.spring.io/spring/docs/3.0.0.M3/reference/html/ch16s11.html] spring annotation

[링크 : http://civan.tistory.com/entry/Override-사용하기]
[링크 : http://linuxism.tistory.com/422] annotation 설명(ibm 문서 백업)
[링크 : http://dryang.egloos.com/1942988] annotation 종류
[링크 : http://java.ihoney.pe.kr/95]

'Programming > Java' 카테고리의 다른 글

Class.forName  (0) 2014.05.09
JDNI - Java Directory & Naming Interface  (0) 2014.05.09
java <-> c 상호호출  (0) 2014.03.25
java TCP/UCP socket  (0) 2014.03.25
java object serializable / ObjectInputStream + ObjectOutputStream  (0) 2014.03.24
Posted by 구차니
Programming/jsp2014. 4. 30. 10:37
스트럿츠2를 보다 보니 이상한게 있어서 찾았는데
끄앙.. EL에 이런게 있었어?!?!? ㅠㅠ

Immediate and Deferred Evaluation Syntax
 Those expressions that are evaluated immediately use the ${} syntax. Expressions whose evaluation is deferred use the #{} syntax.

Immediate Evaluation
All expressions using the ${} syntax are evaluated immediately. These expressions can be used only within template text or as the value of a tag attribute that can accept runtime expressions.

Deferred Evaluation
Deferred evaluation expressions take the form #{expr} and can be evaluated at other phases of a page lifecycle as defined by whatever technology is using the expression. In the case of JavaServer Faces technology, its controller can evaluate the expression at different phases of the lifecycle, depending on how the expression is being used in the page.

[링크 : http://docs.oracle.com/javaee/6/tutorial/doc/bnahr.html


Value Expressions
Value expressions can be further categorized into rvalue and lvalue expressions. Rvalue expressions can read data but cannot write it. Lvalue expressions can both read and write data.

All expressions that are evaluated immediately use the ${} delimiters and are always rvalue expressions. Expressions whose evaluation can be deferred use the #{} delimiters and can act as both rvalue and lvalue expressions. Consider the following two value expressions:

${customer.name}
#{customer.name}

[링크 : http://docs.oracle.com/javaee/6/tutorial/doc/bnahu.html

Table 6-1 Definitions of Tag Attributes That Accept EL Expressions

Attribute Type

Example Expression

Type Attribute Definition

Dynamic

"literal"

<rtexprvalue>true</rtexprvalue>

Dynamic

${literal}

<rtexprvalue>true</rtexprvalue>

Deferred value

"literal"

<deferred-value>
   <type>java.lang.String</type>
</deferred-value>

Deferred value

#{customer.age}

<deferred-value>
   <type>int</type>
</deferred-value>

Deferred method

"literal"

<deferred-method>
   <method-signature>
      java.lang.String submit()
   </method-signature>
<deferred-method>

Deferred method

#{customer.calcTotal}

<deferred-method>
   <method-signature>
      double calcTotal(int, double)
   </method-signature>
</deferred-method>

[링크 : http://docs.oracle.com/javaee/6/tutorial/doc/bnaia.html]

# (deferred)
JSP 2.1 부터 지원하는 문법으로 JSF(JavaServer Face)에서 사용
$는 표현식이 실행되는 시점에 값을 계산하나
#는 값이 실제로 필요한 시점에 값을 계산한다.

[링크 : http://gangzzang.tistory.com/entry/JSP-표현-언어Expression-Language-또는-익스프레션-언어


'Programming > jsp' 카테고리의 다른 글

apache velocity  (0) 2014.05.19
JSP 서블릿 매핑  (0) 2014.05.08
POJO - Plain Old Java Object  (0) 2014.04.29
thread-safe singleton  (0) 2014.04.25
oreilly fileupload/multipart 라이브러리(jar)  (0) 2014.04.24
Posted by 구차니