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 구차니
보고 있자니.. 더 감이 안잡히면서
먼가 잡힐 듯 말듯한 기분?

스트럿츠2 태그(EL)
[링크 : http://struts.apache.org/development/2.x/docs/tag-reference.html]
[링크 : http://struts.apache.org/development/2.x/docs/iterator.html]
[링크 : http://struts.apache.org/development/2.x/docs/property.html]

인터셉터 / 스택
[링크 : http://struts.apache.org/development/2.x/docs/interceptors.html]

'프로그램 사용 > struts2 tiles' 카테고리의 다른 글

struts2 result type input  (0) 2014.05.19
struts2 result type  (0) 2014.05.17
struts2 / tiles 연동시 에러  (0) 2014.05.16
tiles xml 설정(상속)  (0) 2014.05.15
struts2 .action 확장자 변경하기  (2) 2014.05.14
Posted by 구차니
Microsoft/Windows2014. 4. 29. 17:31
나중에 해봐야지

[링크 : http://cappleblog.co.kr/365]

'Microsoft > Windows' 카테고리의 다른 글

하드를 vhd로 변환하기 - 윈도우 백업기능  (0) 2014.05.05
윈도우 업데이트 백업 삭제하기  (2) 2014.05.04
굿바이 XP  (0) 2014.03.11
vhd 용량 늘리기  (0) 2014.02.03
vhd 관련 링크 모음  (0) 2014.01.29
Posted by 구차니
Programming/jsp2014. 4. 29. 17:15
Servlet과 같이 상속을 받아서 쓰는게 아니기에
테스트에도 용이한 일반적인 클래스를 사용한 설계기법(?)에 대한 거창한 이름

2000년에 만들어진 용어라는데..
대학에서 처음 자바 배울때 이런 용어는 들어본적이 없다는게 함정...
머.. 그 당시에 JSP 한게 아니니...

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

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

JSP 서블릿 매핑  (0) 2014.05.08
EL(Expression Language)$와 #  (0) 2014.04.30
thread-safe singleton  (0) 2014.04.25
oreilly fileupload/multipart 라이브러리(jar)  (0) 2014.04.24
context.xml을 이용한 dbcp  (0) 2014.04.24
Posted by 구차니
끄앙.. 다시 공부하려니 머리가 복작복작 ㅠㅠ

데이터베이스는 집합에 기반을 두고 있다.
그렇기에 각각의 항목들은 순서가 존재하지 않으며
원하는 값을 꺼내기 위한 조건에 따라 키들이 분류된다.

음.. 이렇게 정리되는게 맞으려나?




슈퍼키/super key
슈퍼키는 단독으로는 유일하게 구분할 수 없으나
복수개의 튜플을 이용하여 유일하게 구분할 수 있는 경우에 대한 키이다.

후보키/candidate key
후보키는 슈퍼키중 바꿀수 없는 항목을 의미한다.
어떻게 보면.. 슈퍼키에는 구분에 필요한 최소 튜플 이상이 포함되어 있을수 있는데
후보키에는 최소한의 튜플만 포함되는 식

후보키들은 유일성(uniqueness)과 최소성(minimality)를  만족해야 한다.
유일성 - 릴레이션에 있는 모든 투플에 대해 한가지 결과만 나와야 하고
최소성 - 복수개의 어트리뷰트로 구성시 모든 튜플이 유일하게 식별하는데 필요한 최소한의 어트리뷰트로 구성되어야 함
[링크 : http://hidingzz.tistory.com/733]

대리키/alternate key
대리는 기본키로 가능한 후보들 중에 키본키로 선택되지 않는 슈퍼키를 의미한다.

기본키/primary key
기본키는 유일하게 식별되는 하나의 튜플로 이뤄진 키이다.
테이블에서 유일한 값을 지니는 id나 시퀀스를 의미한다. (주민등록 번호나 고유 시리얼 번호)

외래키/foreign key
테이블-테이블의 관계에서 연관을 이어주는 값이다.
일반적으로 부모 테이블-자식 테이블이 있을경우(하위 연관성?)
자식 테이블에 부모 테이블의 기본키나 슈퍼키가 삽입되어 부모테이블과의 join을 통해
하나의 제대로 된 데이터를 추출하는데 쓰여진다.

[링크 : http://ko.wikipedia.org/wiki/키본_키] primary key
[링크 : http://ko.wikipedia.org/wiki/후보_키] candidate key
[링크 : http://ko.wikipedia.org/wiki/슈퍼_키] super key
[링크 : http://ko.wikipedia.org/wiki/대리_키] alternate key
[링크 : http://ko.wikipedia.org/wiki/외래_키] foreign key 




ACID는
원자성(Atomicity)
일관성(Consistency)
고립성(Isolation)
지속성(Durability)
의 약자로  DB 트랜잭션의 안전한 수행 보장을 위한 성질을 가르키는 약어인데..
튜플관련해서도 원자성/일관성 등은 나오니.. 묘하게 헷갈리는 기분... 
[링크 : http://ko.wikipedia.org/wiki/ACID ]

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

데이터베이스 1:n 관계 구현  (0) 2016.02.29
CRUD  (0) 2014.05.17
카티젼 프로덕트, join  (0) 2014.04.26
database 1:N 구성?  (0) 2014.04.15
3-tier 구성?  (0) 2014.04.14
Posted by 구차니
Programming/web 관련2014. 4. 27. 21:11
2GB / php5 / mysql5.0 지원 무료 홈페이지

특이(?)하게도 일단은..
리투아니아와 사이프러스로.. 해외 업체(?)라고 해야하려나?
국내에서는 이제

우비 100MB
미리내 50MB 정도 밖에 안 남은것과는 대조되는 듯...



[링크 : http://www.hostinger.kr/]
[링크 : http://www.hostinger.kr/free-hosting]

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

post 방식과 get 방식의 차이점(cache)  (0) 2014.05.15
sql designer(web)  (0) 2014.05.11
ie8 과 크롬의 html 태그 파싱 차이점  (0) 2014.04.10
NoSQL  (0) 2014.04.09
w3c 규격 번역  (0) 2014.03.17
Posted by 구차니
카티젼 프로덕트는 join 연산을 위한 방법으로
두개의 테이블에 연관성을 통해
하나의 테이블로 합쳐 결과를 얻어내게 한다.

[링크 : http://gap85.tistory.com/29]
[링크 : http://ask.nate.com/qna/view.html?n=8987877]


예전 학부시절 DB수업 시간 들었던
1NF(Normal Form)
2NF 3NF 같은게 바로 이러한 카티젼 프로덕트를 위해 테이블이
중복된 내용이나 누락된 내용 없이 분할되었는지를 증면하는 것이었다!!!
[링크 : http://en.wikipedia.org/wiki/Database_normalization]

그리고 외래키(foreign key)는 이런 분할된 테이블에
다른 테이블의 연관을 얻어내기 위한 데이터이다.

In the context of relational databases, a foreign key is a field (or collection of fields) in one table that uniquely identifies a row of another table.[1][2][3] In other words, a foreign key is a column or a combination of columns that is used to establish and enforce a link between two tables.

The table containing the foreign key is called the referencing or child table, and the table containing the candidate key is called the referenced or parent table.


[링크 : http://en.wikipedia.org/wiki/Foreign_key

끄응.. 볼게 드럽게 많네 ㅠㅠ
학창시절 열심히 안한 업보인가 ㅠㅠ
[링크 : http://en.wikipedia.org/wiki/Candidate_key]
[링크 : http://en.wikipedia.org/wiki/Superkey]

일대다 / 다대일 / 다대다 관계는
이러한 조인에 따른 데이터의 결합 방식으로
하나의 항목에 복수개의 데이터가 붙을수 있는데 
[링크 : http://loopypapa.tistory.com/entry/SQL-일대일-일대다-다대다-관계]
[링크 : http://dimdim.tistory.com/entry/SQL-JOIN-정리-Inner-Join-Outer-Join]

이경우 프로그램에서는 리스트등을 통해 복수개의 데이터를 연관지어 사용하면 된다.
[링크 : http://antop.tistory.com/27]  java code/jsp?

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

데이터베이스 1:n 관계 구현  (0) 2016.02.29
CRUD  (0) 2014.05.17
데이터베이스 - 키 관련  (0) 2014.04.28
database 1:N 구성?  (0) 2014.04.15
3-tier 구성?  (0) 2014.04.14
Posted by 구차니
파일방2014. 4. 25. 22:48
간간히(?) 의사랑 깔일이 있을거 같아서.. 후.... -_-a

[링크 : http://getrest.tistory.com/13]
[링크 : http://m.sybase.com/detail?id=1023009]

'파일방' 카테고리의 다른 글

wifi 검색 프로그램  (0) 2014.05.30
decompiler  (0) 2014.05.21
h5ai - a modern HTTP web server index  (0) 2014.03.14
에이콘출판사 링크  (2) 2013.12.12
스케치업  (0) 2013.09.06
Posted by 구차니
개소리 왈왈2014. 4. 25. 21:01
오늘 벨킨 홈페이지 접속하던 사람의 제보(?)
이게 무슨 웹서버를 쓰나 궁금해서 찾아 보는데
다른 사람들도 벨킨 사이트가 뻗었다 정도만 이야기를 하지
윈도우즈네 정도만 이야기 할뿐..

--> S:\src\IWSystem\Attribute.cpp:306:
--> S:\src\IWProcessServer\ARB_Servlet\ServletRequestBroker.cpp:351: 

아무튼 구글을 해보니..
InterWorld Commerce Exchange 이런게 걸려나오는데 정체가 영.. 미지수다...
 
[링크 : http://ejvyas.blogspot.kr/2011/03/belkin-website-error.html]
[링크 : http://webcache.googleusercontent.com/.../Solaris.pdf+&cd=6&hl=ko&ct=clnk&gl=kr]
[링크 : https://www.gartner.com/doc/308744/interworld-corporation-commerce-exchange]

'개소리 왈왈' 카테고리의 다른 글

atc 2급 자격증 도착!  (0) 2014.05.20
오늘의 지름(?)  (3) 2014.05.15
왜 학원을 다니는걸까..  (0) 2014.04.22
끄아아아아아아앙 ㅠㅠ  (0) 2014.03.24
휴.. 빡세다  (0) 2014.03.21
Posted by 구차니
Programming/jsp2014. 4. 25. 17:13
로그인 로직을 싱글톤으로 사용시 
과연 thread-safe할까? 라는 생각에 검색해보니 똭!

결론은 일반 싱글톤은 당연히 thread-safe하지 않으니
synchronized 등으로 동기화를 하거나(퍼포먼스 저하..)

ThreadLocal로 쓰레드별 로컬 변수로 생성하거나 등으로 회피를 하는 것으로 보인다.
[링크 : http://docs.oracle.com/javase/7/docs/api/java/lang/ThreadLocal.html]



[링크 : http://www.javaservice.net/~java/bbs/read.cgi?m=devtip&b=javatip&c=r_p&n=1028393658]
  [링크 : http://www.cs.umd.edu/~pugh/java/memoryModel/DCL-performance.html] << 원문
[링크 : http://levin01.tistory.com/307] << 부분 번역
[링크 : http://en.wikipedia.org/wiki/Singleton_pattern#Example

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

EL(Expression Language)$와 #  (0) 2014.04.30
POJO - Plain Old Java Object  (0) 2014.04.29
oreilly fileupload/multipart 라이브러리(jar)  (0) 2014.04.24
context.xml을 이용한 dbcp  (0) 2014.04.24
dbcp와 ORA-12518  (0) 2014.04.24
Posted by 구차니