블로그 이미지

calendar

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 31
  • total
  • today
  • yesterday
2016. 10. 5. 15:16 JavaScript

cross domain message

크로스 도메인시 window.opener를 사용하지못하고 서로 접근이 불가능함 그래서 html5에 기술되어 있는 post message라는 것을 이용함

 

크롬
부모

자식

 

크롬

https://developer.mozilla.org/en-US/docs/Web/API/window.postMessage

 

파폭

https://support.mozilla.org/ko/questions/973817

 

ie

http://msdn.microsoft.com/en-us/library/ie/cc197057(v=vs.85).aspx

 

 

 

 

참조 http://m.blog.naver.com/3yong2ya/220127941953

posted by 천상의날개
2016. 9. 28. 17:49 JavaScript

자식창

var opnerFn = null;
   window["test"]=function (a){
    alert(a);
    opnerFn=a;
   }   
   function chageOpener(v){
    opnerFn(v);
   }

 

 

부모창

function openPopup(){
    wp = window.open("test2.html","open1",width=30,height=30);
    setTimeout(function(){
     wp.window.test(tttt);
    },1000);
    
       
   }
   
   function tttt(bb){
    var aa = document.getElementById("aa");
    aa.value=bb;
   }

posted by 천상의날개
2016. 9. 22. 14:02 was관련/tomcat

톰켓설치한 conf 폴더의 tomcat-users.xml 파일에  <tomcat-users> 사이에

<role rolename="manager"/>

<role rolename="manager-gui"/>

<user username="testAdmin" password="password" roles="manager, manager-gui"/>를 추가한다 (페스워드와 유저명은 변경하면됨)

posted by 천상의날개
2016. 4. 18. 18:03 maven

<build>
....
....
<resources>
         <resource>
             <directory>src/main/java</directory>
             <includes>                     
                 <include>**/*.xml</include>
                 <include>**/*.propertis</include>
                 <include>**/*.tld</include>
             </includes>
         </resource>
         <resource>
             <directory>src/main/resources</directory>
         </resource>        
     </resources>
 </build>

 

posted by 천상의날개
2016. 4. 18. 17:10 maven

<dependency>
   <groupId>target</groupId>
   <artifactId>target</artifactId>
   <version>1.0</version>
   <scope>system</scope>
   <systemPath>${basedir}/src/main/webapp/WEB-INF/lib/target.jar</systemPath>
  </dependency>

 

posted by 천상의날개
2016. 4. 4. 16:41 HTML

<button type="button">버튼</button>

posted by 천상의날개
2016. 3. 31. 10:10 Database관련/Oracle
posted by 천상의날개
2016. 3. 25. 17:30 JAVA오픈소스/mybatis
플러그인 소스
spring context xml 설정
http://javafactory.tistory.com/entry/Mybatis%EC%9D%98-PlugIn%EC%9D%84-%EC%9D%B4%EC%9A%A9%ED%95%9C-SQL%EB%AC%B8-%ED%8C%8C%EB%9D%BC%EB%AF%B8%ED%84%B0-%EB%B0%94%EC%9D%B8%EB%94%A9-%EB%A1%9C%EA%B7%B8-%EC%B6%9C%EB%A0%A5 참조

'JAVA오픈소스 > mybatis' 카테고리의 다른 글

마이바티스 프로시져 사용법  (0) 2015.11.18
posted by 천상의날개
2016. 2. 25. 16:32 maven

자바 컴파일 버전, tomcat 자동배포, xml포함 war로 묶는소스 포함.

<build>
  <plugins>
   <plugin>
    <groupId>org.apache.maven.plugins</groupId>
    <artifactId>maven-compiler-plugin</artifactId>
    <version>3.5.1</version>
    <configuration>
     <source>1.7</source>
     <target>1.7</target>
     <encoding>UTF-8</encoding>
    </configuration>
   </plugin>  
   <plugin> 
    <groupId>org.apache.tomcat.maven</groupId> 
    <artifactId>tomcat7-maven-plugin</artifactId> 
    <version>2.2</version> 
    <configuration> 
      <url>http://[targetIP]/manager/text</url> 
      <update>true</update>      
      <username>id</username>
            <password>pw</password>
      <path>/</path>
    </configuration>
   </plugin>   
  </plugins>
  <resources>
         <resource>
             <directory>src/main/java</directory>
             <includes>                     
                 <include>**/*.xml</include>
             </includes>
         </resource>
         <resource>
             <directory>src/main/resources</directory>
         </resource>
     </resources>
 </build>

프로젝트에서 오른쪽 클릭-> Run As-> RunConfigurations 선택
 mavenBuild 더블 클릭
 [base directory]의 위치를 [Browse Workspace..] 버튼으로 배포할 프로젝트 선택
 [goals]에  "clean tomcat7:deploy" 입력

 Run 버튼 클릭

posted by 천상의날개
2016. 2. 3. 09:26 JAVA언어
예외 String 객체로 변환
posted by 천상의날개