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

스트럿츠 동적 레이아웃 구성하기  (0) 2014.05.22
struts2 action에 파라미터 넘기기  (0) 2014.05.22
struts2 result type  (0) 2014.05.17
struts2 / tiles 연동시 에러  (0) 2014.05.16
tiles xml 설정(상속)  (0) 2014.05.15
Posted by 구차니
프로그램 사용/eclipse2014. 5. 18. 18:55
sublclipse와 subversive는 별반 차이가 없어 보이나..
내부적으로 많이 다른것 같은 느낌...?


일단 subversive는 subclipse에서 JavaHL을 통해 Native하게 C언어를 끌어와서 하는것 같고
그 기반으로 JavaHL(High Language) / JNA(Java Native Access)를 이용하는 것으로 생각된다.

음.. subclipse와 subversive의 외관상의 차이는...
subversive 에는 단축키가 할당되고
subclipse 에는 단축키가 없다는 것과

checkout 시에 미묘한 차이가 있다는 것 정도?

subclipse의 단축키가 없는 모습


subversive의 단축키 모습. 그리고 아이콘도 촘촘히 존재한다.


아무트 설치과정은
Subversive 설치 후


리부팅시에 맞는 버전에 따라 (귀찮으니 그냥 JavaHL 32bit/64bit로 하면 됨) 설치한다.


[링크 : http://subclipse.tigris.org/wiki/JavaHL] JavaHL
[링크 : http://en.wikipedia.org/wiki/Java_Native_Access] JNA
[링크 : http://www.eclipseonetips.com/.../eclipse-shortcuts-for-common-svn-commands/]  이클립스 단축키 설정
[링크 : http://www.eclipse.org/subversive/index.php] subvesive
[링크 : http://stackoverflow.com/questions/553133/subclipse-with-svnkit-adapter ] SVNKit Connector
Posted by 구차니
오오.. 통합의 위력 ㄷㄷ
스트럿츠 2의 결과를 돌려주는 방식은 다음과 같다.

Chain Result Used for Action Chaining
Dispatcher Result Used for web resource integration, including JSP integration
FreeMarker Result Used for FreeMarker integration
HttpHeader Result Used to control special HTTP behaviors
Redirect Result Used to redirect to another URL (web resource)
Redirect Action Result Used to redirect to another action mapping
Stream Result Used to stream an InputStream back to the browser (usually for file downloads)
Velocity Result Used for Velocity integration
XSL Result Used for XML/XSLT integration
PlainText Result Used to display the raw content of a particular page (i.e jsp, HTML)
Tiles Result Used to provide Tiles integration

다른건 모르겟고.. chain의 경우 로그인과 같이 여러개 페이지를 돌릴때 묶어서(chain)
쓴다고 하는데 조금 더 찾아 봐야 할 듯..

[링크 : http://struts.apache.org/release/2.2.x/docs/result-types.html]
[링크 : http://struts.apache.org/release/2.2.x/docs/tiles-plugin.html]
    [링크 : http://struts.apache.org/release/2.2.x/docs/action-chaining.html]


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

struts2 action에 파라미터 넘기기  (0) 2014.05.22
struts2 result type input  (0) 2014.05.19
struts2 / tiles 연동시 에러  (0) 2014.05.16
tiles xml 설정(상속)  (0) 2014.05.15
struts2 .action 확장자 변경하기  (2) 2014.05.14
Posted by 구차니
스트럿츠2에 타일스를 연동하려는데 계속 에러가 나서 멘붕 -_-
XML 상으로는 문제가 없지만 action 이나 success에 연결되는 놈이 없다고 난리핀다 -_-
심각: Exception starting filter struts2
Error building results for action indexAction in namespace  - action - file:/D:/monk/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/struts2_board/WEB-INF/classes/struts.xml:8:56

Caused by: There is no result type defined for type 'tiles' mapped with name 'success' - result - file:/D:/monk/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/struts2_board/WEB-INF/classes/struts.xml:9:25 

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">

<struts>
<package name="board" extends="struts-default, tiles-default">
<action name="indexAction" class="board.indexAction">
<result type="tiles">home</result>
</action>
</package>
</struts>


스트럿츠2+타일스 통합글을 보다보니 헐...
ㅋㅋㅋㅋ
ㅋㅋㅋㅋ

struts2-core-2.0.14.jar
struts2-tiles-plugin-2.0.8.jar <<<

스트럿츠2-타일스 연동을 위해서는 플러그 인 이 추가되어야 하는데
해당 jar 파일을 넣지 않았으니.. 될리가 있나 -_-a

[링크 : http://thinkingblog.tistory.com/19

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

struts2 result type input  (0) 2014.05.19
struts2 result type  (0) 2014.05.17
tiles xml 설정(상속)  (0) 2014.05.15
struts2 .action 확장자 변경하기  (2) 2014.05.14
strtus2 레퍼런스  (0) 2014.04.30
Posted by 구차니
extends를 이용해서 끌어오면 된다.

<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE tiles-definitions PUBLIC
       "-//Apache Software Foundation//DTD Tiles Configuration 2.0//EN"
       "http://tiles.apache.org/dtds/tiles-config_2_0.dtd">

<tiles-definitions>

    <!-- Default Main Template -->
    <definition name=".mainTemplate" template="/WEB-INF/templates/main.jsp">
        <put-attribute name="title" value="Simple Tiles 2 Example" type="string" />
        <put-attribute name="header" value="/WEB-INF/templates/header.jsp" />
        <put-attribute name="footer" value="/WEB-INF/templates/footer.jsp" />
        <put-attribute name="menu" value="/WEB-INF/templates/menu.jsp" />
        <put-attribute name="body" value="/WEB-INF/templates/blank.jsp" />
    </definition>
 
    <definition name="index" extends=".mainTemplate">
        <put-attribute name="body" value="/WEB-INF/jsp/index.jsp" />
    </definition>

    <definition name="info/about" extends=".mainTemplate">
        <put-attribute name="body" value="/WEB-INF/jsp/info/about.jsp" />
    </definition>
    
</tiles-definitions>

[링크 : http://www.springbyexample.org/examples/simple-tiles-spring-mvc-webapp-tiles-xml-config.html

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

struts2 result type input  (0) 2014.05.19
struts2 result type  (0) 2014.05.17
struts2 / tiles 연동시 에러  (0) 2014.05.16
struts2 .action 확장자 변경하기  (2) 2014.05.14
strtus2 레퍼런스  (0) 2014.04.30
Posted by 구차니
기본 설정에서 action으로 되어 있는 것 같은데..
아무튼, 이렇게 constant 설정을 통해서 변경이 가능하다.

걍.. do로 해볼까?

<struts>
    <constant name="struts.action.extension" value="html"/> 
</struts>

[http://www.mkyong.com/struts2/how-to-remove-the-action-suffix-extension-in-struts-2/

'프로그램 사용 > 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
strtus2 레퍼런스  (0) 2014.04.30
Posted by 구차니
ibatis는 현재 mybatis로 이름이 변경되었다.

db를 위한 프레임워크로
코드상에 sql문을 넣는게 아닌 xml에 sql문을 넣어 관리가 용이하도록 한다.

[링크 : https://ibatis.apache.org/]
[링크 : http://blog.mybatis.org/]
  [링크 : http://mybatis.github.io/mybatis] 문서
Posted by 구차니
프로그램 사용/oracle2014. 5. 11. 23:13
음. 별 차이가 없군..

create sequence 했으니
drop sequence

[링크 : http://deuxism.tistory.com/27]

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

oracle view  (0) 2014.05.20
oracle alter  (0) 2014.05.20
오라클 DDL 정리  (0) 2014.05.11
오라클 10g용 시작/종료 스크립트  (0) 2014.04.11
oracle backup  (0) 2014.04.10
Posted by 구차니
결론은.. varchar 같은 문자열 보다는
INET_ATON 같이 숫자로 바꾸어서
integer 등으로 하는게 유리하다.. 인가?

그나저나.. 오라클에서는 멀로 하지..

[링크 : http://www.phpschool.com/link/qna_db/196498]
[링크 : http://tiger5net.egloos.com/5660848]

'프로그램 사용 > mysql & mariaDB' 카테고리의 다른 글

woobi mysql 백업복구  (0) 2015.03.02
oracle to mysql 포팅을 위한 SQL 문법 차이점  (0) 2014.06.03
mysql trigger 지원  (0) 2014.04.25
mariaDB 우분투에 설치하기  (0) 2014.04.16
mysql / mariaDB  (1) 2014.04.16
Posted by 구차니
프로그램 사용/oracle2014. 5. 11. 17:47
데이터 타입이나 키워드들 정리..

quantumDB를 통해 해보니
nvarchar2나
varchar2 모두 ()로 길이를 지정해 주어야 한다 -_-

number에 인자를 주지 않으니 22 자릿수로 생성된다


group like date 등은 예약어라서
필드명으로 사용이 불가능하다.

[링크 : http://docs.oracle.com/cd/B28359_01/server.111/b28318/datatype.htm]
[링크 : http://dkatlf900.tistory.com/83]


대용량 데이터 타입은 검색을 지원하지 않는다(like)
[링크 : http://ingu.egloos.com/2832427]


오라클에서 ip용으로는 32bit int를 구현할수 없기에
number(10,0) 42억이니 10자리수로 하면 될 것으로 생각된다.
[링크 : http://grapro.tistory.com/50
[링크 : http://docs.oracle.com/cd/B14117_01/server.101/b10758/sqlqr06.htm]
[링크 : http://www.sqlines.com/postgresql/datatypes/int

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

oracle alter  (0) 2014.05.20
oracle sequence 명령어  (0) 2014.05.11
오라클 10g용 시작/종료 스크립트  (0) 2014.04.11
oracle backup  (0) 2014.04.10
oracle table list  (0) 2014.04.10
Posted by 구차니