본문 바로가기
반응형

Mizix131

javaBean사용하기. javaBean 자바빈은 테이터를 표현하는 것을 목적으로 하는 자바 클래스이다. 아래 예시에서 Person은 JavaBean이다. 그래서 빈과 관련된 표준 액션(standard action을 사용할수 있다. javaBean 선언하기 은 자바빈을 사용한다는 선언이다. id 는 사용할 javaBean의 이름 이고, class 는 javaBean에서 사용할 클래스명이다. 즉, 여기서는 person이라고 javaBean을 선언해주고 person이라는 javaBean은 example.Person클래스를 사용한다는 것이다. javaBean 사용 예제 From.html name : ID# : Person.java package example; public abstract class Person { public Str.. 2009. 8. 11.
The Three Scopes : Context, Request, and Session 1. Context 애플리케이션에 있는 것이라면 누구나 접근할 수 있다. 2. Session 특정 HttpSession에 접근 관한을 가진 녀석만 접근할 수 있다. 3. Request 특정 ServletRequest에 접근 관한을 가진 녀석만 접근할 수 있다. 2009. 8. 11.
속성(파라미터) 파라미터 초기화 파라미터 초기화는 서블릿마다 초기화 해주는것과 모든 서블릿 공통적으로 사용할수 있는 초기화가 있다. 즉, ServletConfig는 서블릿 당 하나, ServletContext는 웹 애플리케이션 당 하나 1. 서블릿마다 초기화 해주는 법. BeerSelect라는 서블릿 안에서 같이 초기화 시켜주면 이렇게 초기화한 파라미터는 그 서블릿 안에서만 적용된다. BeerSelect BeerSelect com.example.web.BeerSelect adminEmail admin@admin.com mainEmail main@main.com 초기화 한 값 읽어오기 getServletConfig().getInitParameter("adminEmail") 2. 모두 사용할수 있게 초기화 하는법. 전체 어.. 2009. 8. 11.
Oracle 8i, 9i & 10g 데이터베이스 연결 설정법 0. Introduction Oracle requires minimal changes from the MySQL configuration except for the usual gotchas :-) Drivers for older Oracle versions may be distributed as *.zip files rather than *.jar files. Tomcat will only use *.jar files installed in $CATALINA_HOME/common/lib. Therefore classes111.zip or classes12.zip will need to be renamed with a .jar extension. Since jarfiles are zipfiles, ther.. 2009. 8. 10.
반응형