일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 선택적조인
- dock
- oracle
- Android
- Google Map
- appspresso
- jsr 296
- Spring
- iBATIS
- PLSQL
- 전자정부프레임워크
- MySQL
- JDOM
- WebLogic
- PHP
- jQuery
- tomcat
- JSON
- swingx
- phonegap
- ibsheet
- MFC
- node.js
- 가우스
- rowspan
- Ajax
- sencha touch
- Eclipse
- GPS
- Struts
- Today
- Total
목록Developement/Java (204)
Where The Streets Have No Name
First define a Bean called StudentGrades: Package example; public StudentGrades { private String name, biology, chemistry, physics, english, math; public String getName () { return this.name; } public String getBiology () { return this.biology; } public String getChemisty () { return this.chemistry; } public String getPhysics () { return this.physics; } public String getEnglish () { return this...
출처 : http://blog.naver.com/julymorning4/100018922244 스트럿츠가 제공 하는 예외 처리 스트럿츠 1.1.이후에는 작지만 효율적인 예외처리 프레임워크를 추가 했습니다. 또한org.apache.struts.util.AppException 클래스는 ActionError를 포함하며java.lang.Exception을 확장한 클래스 입니다. 아래와 같이 스트럿츠에서 사용하면 되는데 throw new AppException(“error.password.invalid”); 생성자의 “error.password.invalid”는 리소스 번들의 key 이며 프레임웍에서는 자동적으로 예외의ActionError 객체를 생성하고 적절한 scope에 저장 합니다. 물론 애플리케이션에서 A..
출처 : http://blog.naver.com/julymorning4/100018922231 자바의 예외는 애플리케이션에서 비정상적인 상황이 발생 할 때 생성되는 객체 입니다. 자바에서 예외가 발생하면java.lang.Throwable 객체를 상속한 객체를 생성하는 것입니다. Throwable 아래에는java.lang.Error와 java.lang.Exception등이 있습니다. 일반적으로 Exception의 경우 Application에서 처리 가능한 예외이며 스트럿츠에서의 모든 예외는 Exception 클래스의 서브 클래스로 생성하고 발생해야 합니다. Exception을 제외한 Error 부분은 심각한 문제들을 위해 예약되어 있습니다. 예를 들어 애플리케이션에서 사용 할 시스템 메모리가 부족한에러 등..
출처 : http://humanedjucation.com/trails/learning_trail_eclipse.htm This online learning trail is intended for Java developers who wish to start working on Eclipse plug-in development.The trail should be followed step-by-step. Where examples are provided, the reader should work through them.Total time required:1.5 days for Basic Java 5 days for Advanced Java [Mandatory only for senior developers] ..
http://sayjava.egloos.com/2302736
출처 : http://blog.naver.com/neolithe/20024796258 - 제우스 서버가 Ready 된 후 boot 를 하게 되면 제우스매니저는 JEUSMain.xml 를 읽어 Runtime환경을 구성한 후 노드에 있는 제우스서비스를 시작. 1. Configuration File ⓐ JEUSMain.xml :JEUS Manager 와 노드를 관리하는 기본설정파일 ⓑ file-realm.xml : 보안설정 ⓒ WEBMain.xml : Servelt/JSP Engine 설정 ⓓ jeus-web_dd_.xml : JEUS Web Application deployment descriptor ⓔ EJBMain.xml : EJB 엔진 환경설정 ⓕ jeus-ejb-dd_.xml : JEUS EJB Mo..
출처 : http://openframework.or.kr/JSPWiki/Wiki.jsp?page=JeusRemoteDebugging 이 문서는 eclipse 3.1.1, Jeus 4.2 에서 작성된 문서이다. jsp디버깅을 위해 WEBMain.xml파일에 \-g옵션을 주면 jsp디버깅이 된다고 한다. 하지만 나의 경우. 잘 되지 않는다. 1. 먼저 Jeus실행을 위한 batch파일을 생성한다. jeus.bat파일을 start_jeus_debug.bat 라는 이름으로 복사후 다음의 값을 java 뒤에 붙여준다. -classic -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8888,suspend=n,server=y Jeus종료를 위한 batch파일은 다..
http://www.javaworld.com/javaworld/jw-07-2005/jw-0711-exception_p.html
http://www.onjava.com/lpt/a/6415 In most Java projects, a large percentage of the code is boilerplatecode. Exception handling comes under this category. Even though thebusiness logic may be just three or four lines of code, exceptionhandling might go on for ten to 20 lines. This article talks about howto keep exception handling simple and straightforward, keeping thedeveloper's plate clean for h..
출처 : http://hjazz.com/tt/blog/20 1. tomcat home/conf/server.xml 파일에서 다음과 같은 부분을 추가 해준다. (빨간부분을 설정한다) 2. tomcat home/conf/catalina/localhost에 있는 .xml파일을 열어서 Context 태그 내에 다음링크를 추가시킨다. 3. DAO 클래스에서 getConnection 메서드를 구현해서 사용한다. (예) private static Connection getConnection() throws NamingException, SQLException{ InitialContext ctx = new InitialContext(); Context envCtx = (Context) ctx.lookup("java:c..
출처 : http://dbdb.tistory.com/ 아파치와 연동없이 톰캣만으로도 하나의 IP로 다수의 웹사이트를 운영하는 것이 가능하다. (아파치와 톰캣을 연동하는 방법에 대해서는 차후에 자세히 올리도록 하겠다) 특히 개발자의 경우 여러개의 프로젝트를 개발하거나 테스트하고자 할 때 웹사이트를 여러개 운영해야한다. 다수의 웹 사이트를 세팅하는 방법은 크게 2가지가 있다. 가상호스트를 이용하는 방법 IP Address의 port를 여러개 사용하는 방법가상호스트를 이용하는 방법은 도메인을 이용하여 실제로 서비스를 운영하는 경우가 아니면 개발자에겐 별 의미가 없다. 여기서는두번째 방법인 IP 어드레스의 포트를 이용하는 방법에 대해서 설명하겠다. (바로가기 : 톰캣에서 가상 호스트를 이용하는 방법)우선 설치 ..
1. 모든 문서는 UTF-8 인코딩으로 저장되어야 합니다.에디트 플러스의 경우 도구 -> 기본설정 -> 파일 부분에서 새 파일 형식을UTF-8 로 해놓음으로써 새파일 작성시 UTF-8을 기본으로 작성할수 있고,이미 다른 인코딩 타입에서 작성된 문서인 경우 내용을 모조리 Ctrl+C로 복사후 문서 -> 인코딩 변경 로드에서 UTF-8로 변경후 다시 붙여넣기 하면 됩니다. 이클립스의 경우 Package Explorer 에서 프로젝트에서 우측 버튼을 누른 후Properties->Info->Text file encoding->Other 을 UTF-8 로 잡아주면 됩니다.( 기존 다른 인코딩 타입에서 작성된 문서 내부 한글은 모조리 깨지게 됨 ) * ascii 로 작성된 자바스크립트 파일을 utf 문서에서 불러와..
public static String getStackTrace(Throwable e) { java.io.ByteArrayOutputStream bos = new java.io.ByteArrayOutputStream(); java.io.PrintWriter writer = new java.io.PrintWriter(bos); e.printStackTrace(writer); writer.flush(); return bos.toString(); }
KSC5601 --> 8859_1 로 변환하면 됨
http://www.eclipse.org/equinox/server/http_in_container.php Eclipse Equinox/OSGi server-side Servlet (WAR file) http://www.eclipse.org/ohf/components/bridge/install.php
출처 : http://www.okjsp.pe.kr/bbs?act=VIEW&seq=27259&bbs=bbs4&keyfield=content&keyword=&pg=0 1. 첫째는 옛날 방식으로 JSP페이지에 직접 에러페이지를 표시해주는 방식입니다. 이때 error.jsp에 라고 선언해야합니다. JSP페이지에 에러가 발생하면 error.jsp로 제어가 넘어가고 error.jsp에서는 "exception"이라는 implicit 객체를 사용하여 에러메시지를 보여줄 수 있습니다. 에러를 우아하게 처리하기 위해서는 JSP페이지마다 errorPage속성을 지정해야하는 불편이 있었던 방식입니다. 2. 둘째는 서블릿2.3에서 추가된 것으로, web.xml에 에러유형별로 에러페이지를 지정해 주는 좀더 진화된 방식입니다.(첨..
이 문서는 기술지원 또는 개발 시 java.lang.OutOfMemoryError 를 만났을 때 원인 파악 및 해결방안 입니다.java.lang.OutOfMemoryError 에는 크게 2가지 패턴이 있다고 볼 수 있습니다.(전적으로 개인적인 생각이지만..^^)Java의 heap 메모리가 정말로 Full 되서 나는 종류가 있고 그렇지 않은데도 나는 종류가 있습니다.그 둘 중에 어는 것 인지부터 가려내는 것이 가장 먼저 선행되어야 합니다.Java 가상머신에는 메모리 구조가 여러단계로 나뉘어 져 있으므로 어느 영역에 의해 java.lang.OutOfMemoryError 가 나는지 알기 위해 JAVA OPTION으로 싸이트가 안정화 되기 전까진 –verbosegc 또는 -XX:+PrintGCDetails옵션을..
PoolManager pool = PoolManager.getInstance(); Connection conn = null; PreparedStatement pstmt = null; try { conn = (Connection) pool.getConnection(); pstmt = conn.prepareStatement("delete from neouserTable where name = ?"); for (int i=0; i < daumid.length; i++) { pstmt.setString (1, name[i]); pstmt.addBatch(); } int results[] = pstmt.executeBatch(); returnValue ="true"; } catch (BatchUpdateExcep..
출처 : http://www.zdnet.co.kr/builder/dev/java/0,39031622,39147106,00.htm 조인포인트 횡단 관심 모듈의 기능이 삽입되어 동작할 수 있는 실행 가능한 특정위치를 말한다. 예를 들어 메쏘드가 호출되는 부분 또는리턴되는 시점이 하나의 조인포인트(jointpoint)가 될 수 있다. 또 필드를 액세스하는 부분, 인스턴스가 만들어지는 지점,예외가 던져지는 시점, 예외 핸들러가 동작하는 위치, 클래스가 초기화되는 곳 등이 대표적인 조인포인트가 될 수 있다. 각각의조인포인트들은 그 안에 횡단 관심의 기능이 AOP에 의해 자동으로 추가되어져서 동작할 수 있는 후보지가 되는 것이다. 포인트컷 포인트컷(pointcut)은 어떤 클래스의 어느 조인포인트를 사용할 것인지를..
JDBC makes it easy for Java applications to access and manipulate data in databases. However there are parts ofthe API that are somewhat primitive. Many host languages provide support for named host variables in SQL statementsand stored procedures. Java, via JDBC does not provide this capability. Two statement binders have been createdthat allow the use of named host variables. This reduces the ..