<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>달콤 쌉싸래한 인생 &#187; JSP&amp;Servlet</title>
	<atom:link href="http://jongsunkim.pe.kr/archives/category/programming/jsp/feed" rel="self" type="application/rss+xml" />
	<link>http://jongsunkim.pe.kr</link>
	<description>Be fully awake if you want to dream</description>
	<lastBuildDate>Sun, 22 Apr 2012 12:02:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Servlet 과 JSP 의 차이</title>
		<link>http://jongsunkim.pe.kr/archives/1419</link>
		<comments>http://jongsunkim.pe.kr/archives/1419#comments</comments>
		<pubDate>Wed, 15 Dec 2010 08:48:26 +0000</pubDate>
		<dc:creator>Kim Jong-seon</dc:creator>
				<category><![CDATA[JSP&Servlet]]></category>

		<guid isPermaLink="false">http://jongsunkim.pe.kr/?p=1419</guid>
		<description><![CDATA[Servlet의 생명주기 서블릿의 생명주기는 서블릿이 deployed 되어 있는 컨테이너에 의해 관리된다. 컨테이너는 다음과 같은 단계로 동작하는데 1. 서블릿 인스턴스가 존재하지 않을 경우 a. 서블릿 클래스를 로딩한다. b. 서블릿 클래스 인스턴스를 생성한다. c. init() 메서드를 호출해서 서블릿 인스턴스를 초기화 한다. 2. service() 메서드가 호출, request와 response 객체를 넘겨준다. service() 메서드는 클라이언트 요청에 따라 doGet() 또는 doPost() [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Servlet의 생명주기</strong></p>
<p>서블릿의 생명주기는 서블릿이 deployed 되어 있는 컨테이너에 의해 관리된다.</p>
<p>컨테이너는 다음과 같은 단계로 동작하는데</p>
<p>1. 서블릿 인스턴스가 존재하지 않을 경우</p>
<p>a. 서블릿 클래스를 로딩한다.</p>
<p>b. 서블릿 클래스 인스턴스를 생성한다.</p>
<p>c. init() 메서드를 호출해서 서블릿 인스턴스를 초기화 한다.</p>
<p>2. service() 메서드가 호출, request와 response 객체를 넘겨준다. service() 메서드는 클라이언트 요청에 따라 doGet() 또는 doPost() 메서드를 호출.</p>
<p>마지막으로 서블릿을 컨테이너에서 제거할 땐 destroy() 메서드를 호출한다.</p>
<p><strong>JSP의 생명주기</strong></p>
<p>1. 컨테이너는 .jsp 파일을 서블릿 파일을 만들기 위한 .java 소스 파일로 변환합니다.</p>
<p>2. 컨테이너는 .java 파일을 컴파일하여 .class 파일로 만듭니다.</p>
<p>3. 컨테이너는 새로 생성된 서블릿 클래스를 메모리로 로딩합니다.</p>
<p>4. 컨테이너가 서블릿을 인스턴스화하면 인스턴스 jspInit() 메서드가 실행됩니다. 이 객체는 클라이언트 요청을 처리할 수 있는 완전한 서블릿으로 거듭나게 됩니다.</p>
<p>5. 요청이 들어올 때마다 컨테이너는 새로운 스레드를 만들어 _jspService() 메서드를 실행합니다.</p>
<p>참고</p>
<p><a href="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets4.html">http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets4.html</a></p>
<p><a href="http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets7.html">http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets7.html</a></p>
<p>Head First Servlet&amp;JSP</p>
]]></content:encoded>
			<wfw:commentRss>http://jongsunkim.pe.kr/archives/1419/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tomcat &amp; Oracle DataSource 설정</title>
		<link>http://jongsunkim.pe.kr/archives/1107</link>
		<comments>http://jongsunkim.pe.kr/archives/1107#comments</comments>
		<pubDate>Sun, 11 Jul 2010 03:07:29 +0000</pubDate>
		<dc:creator>Kim Jong-seon</dc:creator>
				<category><![CDATA[JDBC]]></category>
		<category><![CDATA[JSP&Servlet]]></category>
		<category><![CDATA[Oracle]]></category>

		<guid isPermaLink="false">http://jongsunkim.pe.kr/?p=1107</guid>
		<description><![CDATA[1. conf/server.xml파일을 열고 &#60;GlobalNamingResources&#62;엘리먼트 안에 다음 내용 추가. 2. conf/context.xml에 추가 3. 코드 안에서는]]></description>
			<content:encoded><![CDATA[<p><strong>1. conf/server.xml파일을 열고 &lt;GlobalNamingResources&gt;엘리먼트 안에 다음 내용 추가.</strong></p>
<pre class="brush: xml; title: ; notranslate">

&lt;Resource name=&quot;jdbc/myoracle&quot; auth=&quot;Container&quot;
 type=&quot;javax.sql.DataSource&quot; driverClassName=&quot;oracle.jdbc.OracleDriver&quot;
 url=&quot;jdbc:oracle:thin:@localhost:1521:데이터베이스이름&quot;
 username=&quot;유저네임&quot; password=&quot;패스워드&quot; /&gt;
</pre>
<p><strong>2. conf/context.xml에 추가</strong></p>
<pre class="brush: xml; title: ; notranslate">

&lt;ResourceLink global=&quot;jdbc/myoracle&quot; name=&quot;jdbc/myoracle&quot; type=&quot;javax.sql.DataSource&quot;/&gt;
</pre>
<p><strong>3. 코드 안에서는</strong></p>
<pre class="brush: java; title: ; notranslate">

InitialContext ic = new InitialContext();
DataSource ds = (DataSource)ic.lookup(&quot;java:comp/env/jdbc/myoracle&quot;);
Connection con = ds.getConnection();
</pre>
]]></content:encoded>
			<wfw:commentRss>http://jongsunkim.pe.kr/archives/1107/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What is Web Container</title>
		<link>http://jongsunkim.pe.kr/archives/1053</link>
		<comments>http://jongsunkim.pe.kr/archives/1053#comments</comments>
		<pubDate>Thu, 24 Jun 2010 01:48:03 +0000</pubDate>
		<dc:creator>Kim Jong-seon</dc:creator>
				<category><![CDATA[JSP&Servlet]]></category>

		<guid isPermaLink="false">http://jongsunkim.pe.kr/?p=1053</guid>
		<description><![CDATA[In Java Platform, Enterprise Edition, a web container &#8220;implements the web component contract of the J2EE architecture&#8221;.[1] This contract specifies a runtime environment for web components that includes security, concurrency, lifecycle management, transaction, deployment, and other services. A web container provides the same services as a JSP container as well as a federated view of [...]]]></description>
			<content:encoded><![CDATA[<p>In <a title="Java Platform, Enterprise Edition" href="http://en.wikipedia.org/wiki/Java_Platform,_Enterprise_Edition">Java Platform, Enterprise  Edition</a>, a <strong>web container</strong> &#8220;implements the web component  contract of the J2EE architecture&#8221;.<sup id="cite_ref-0"><a href="http://en.wikipedia.org/wiki/Web_container#cite_note-0">[1]</a></sup> This contract specifies a <a title="Runtime  environment" href="http://en.wikipedia.org/wiki/Runtime_environment">runtime environment</a> for web  components that includes <a title="Computer  security" href="http://en.wikipedia.org/wiki/Computer_security">security</a>, <a title="Concurrency (computer science)" href="http://en.wikipedia.org/wiki/Concurrency_%28computer_science%29">concurrency</a>, <a title="Lifecycle management" href="http://en.wikipedia.org/wiki/Lifecycle_management">lifecycle management</a>, <a title="Transaction processing" href="http://en.wikipedia.org/wiki/Transaction_processing">transaction</a>, deployment, and other  services. A web container provides the same services as a <a title="JavaServer  Pages" href="http://en.wikipedia.org/wiki/JavaServer_Pages">JSP</a> container as well as a federated view of the <a title="Java Platform, Enterprise Edition" href="http://en.wikipedia.org/wiki/Java_Platform,_Enterprise_Edition">Java EE</a> (formerly J2EE)  platform APIs.</p>
<p>from wikipedia</p>
<p><a href="http://en.wikipedia.org/wiki/Web_container" target="_blank">http://en.wikipedia.org/wiki/Web_container</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jongsunkim.pe.kr/archives/1053/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Servlet 만들기</title>
		<link>http://jongsunkim.pe.kr/archives/1041</link>
		<comments>http://jongsunkim.pe.kr/archives/1041#comments</comments>
		<pubDate>Tue, 22 Jun 2010 13:13:16 +0000</pubDate>
		<dc:creator>Kim Jong-seon</dc:creator>
				<category><![CDATA[JSP&Servlet]]></category>

		<guid isPermaLink="false">http://jongsunkim.pe.kr/?p=1041</guid>
		<description><![CDATA[GenericServlet을 상속받아 Servlet 만들기 1. tomcat을 start시키고 2. 프로젝트를 생성한다. new -&#62; Dynamic Web Project (없으면 Other -&#62; Web -&#62; Dynamic Web Project) 프로젝트명 : webtest 3. 클래스 생성 Java Resources: src 디렉토리에 클래스를 생성한다. Package 명 : step1 Class 명 : MyServlet 4. 아래와 같이 MyServlet 클래스를 만들고 WebContent 디렉토리에 index.html을 만든다. 5. MyServlet.java [...]]]></description>
			<content:encoded><![CDATA[<p>GenericServlet을 상속받아 Servlet 만들기</p>
<p>1. tomcat을 start시키고</p>
<p>2. 프로젝트를 생성한다.</p>
<p>new -&gt; Dynamic Web Project (없으면 Other -&gt; Web -&gt; Dynamic Web Project)</p>
<p><a href="http://jongsunkim.pe.kr/wp-content/uploads/2010/06/1.png"><img class="alignnone size-full wp-image-1042" title="1" src="http://jongsunkim.pe.kr/wp-content/uploads/2010/06/1.png" alt="" width="482" height="289" /></a></p>
<p>프로젝트명 : webtest</p>
<p><a href="../wp-content/uploads/2010/06/2.png"><img title="2" src="../wp-content/uploads/2010/06/2.png" alt="" width="462" height="527" /></a></p>
<p>3. 클래스 생성</p>
<p>Java Resources: src 디렉토리에 클래스를 생성한다.</p>
<p>Package 명 : step1</p>
<p>Class 명 : MyServlet</p>
<p><a href="http://jongsunkim.pe.kr/wp-content/uploads/2010/06/3.png"><img class="alignnone size-full wp-image-1044" title="3" src="http://jongsunkim.pe.kr/wp-content/uploads/2010/06/3.png" alt="" width="452" height="523" /></a></p>
<p>4. 아래와 같이 MyServlet 클래스를 만들고</p>
<p>WebContent 디렉토리에 index.html을 만든다.</p>
<p><a href="http://jongsunkim.pe.kr/wp-content/uploads/2010/06/4.png"><img class="alignnone size-full wp-image-1045" title="4" src="http://jongsunkim.pe.kr/wp-content/uploads/2010/06/4.png" alt="" width="253" height="240" /></a></p>
<p>5. MyServlet.java 파일 내용</p>
<p>GenericServlet을 extends하고 service() 메서드를 오버라이딩한다.</p>
<pre class="brush: java; title: ; notranslate">

package step1;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.GenericServlet;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

public class MyServlet extends GenericServlet {
 @Override
 public void service(ServletRequest request, ServletResponse response)
 throws ServletException, IOException {
 System.out.println(&quot;*** service ***&quot;);// 요청이 있을 때마다 프린트해준다.
 response.setContentType(&quot;text/html;charset=euc-kr&quot;);
 PrintWriter out = response.getWriter(); // 브라우저에 보여준다.
 out.println(&quot;&lt;html&gt;&lt;body&gt;&quot;);
 out.println(&quot;&lt;font size=7 color=blue&gt;Hello Servlet!!&lt;/font&gt;&quot;);
 out.println(&quot;&lt;/body&gt;&lt;/html&gt;&quot;);
 out.close();

 }
}
</pre>
<p>6. web.xml 파일 내용</p>
<p>아래 내용을 추가한다.</p>
<pre class="brush: xml; title: ; notranslate">

&lt;servlet&gt;
 &lt;servlet-name&gt;hello&lt;/servlet-name&gt;
 &lt;servlet-class&gt;step1.MyServlet&lt;/servlet-class&gt;
 &lt;/servlet&gt;
 &lt;servlet-mapping&gt;
 &lt;servlet-name&gt;hello&lt;/servlet-name&gt;
 &lt;url-pattern&gt;/hello&lt;/url-pattern&gt;
 &lt;/servlet-mapping&gt;
</pre>
<p>7. Run as -&gt; Run on Server 클릭하여 컴파일과 동기화</p>
<p>8. http://localhost:8888/webtest/hello 에 접속하면 아래와 같은 화면이 뜬다</p>
<p><a href="http://jongsunkim.pe.kr/wp-content/uploads/2010/06/5.png"><img class="alignnone size-full wp-image-1047" title="5" src="http://jongsunkim.pe.kr/wp-content/uploads/2010/06/5.png" alt="" width="537" height="391" /></a></p>
<p>웹브라우저의 요청이 있을 때마다 tomcat 에는 아래와 같이 out.println()을 이용해서 요청을 알린다</p>
<p><a href="http://jongsunkim.pe.kr/wp-content/uploads/2010/06/6.png"><img class="alignnone size-full wp-image-1048" title="6" src="http://jongsunkim.pe.kr/wp-content/uploads/2010/06/6.png" alt="" width="560" height="179" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jongsunkim.pe.kr/archives/1041/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eclipse와 Tomcat 연동</title>
		<link>http://jongsunkim.pe.kr/archives/1039</link>
		<comments>http://jongsunkim.pe.kr/archives/1039#comments</comments>
		<pubDate>Mon, 21 Jun 2010 13:36:54 +0000</pubDate>
		<dc:creator>Kim Jong-seon</dc:creator>
				<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[JSP&Servlet]]></category>

		<guid isPermaLink="false">http://jongsunkim.pe.kr/?p=1039</guid>
		<description><![CDATA[1. Tomcat 6.0 다운로드 http://tomcat.apache.org/ 2. 적당한 위치에 다운로드 받은 압축파일을 풀고 폴더명을 tomcat으로 변경 3. tomcat\conf\server.xml 파일 편집 port를 8888로 변경(8080포트가 oracle과 충돌되므로), URIEncoding=&#8221;euc-kr&#8221; 추가(한글처리) 4. tomcat\conf\context.xml 파일 편집 reloadable=&#8221;true&#8221; 추가 5. Eclipse 메뉴 Window -&#62; Open perspective -&#62; Servers 추가 Eclipse 아래 Servers 탭에서 마우스 오른쪽 버튼 클릭하여 new -&#62; apache -&#62; tomcat6.0 [...]]]></description>
			<content:encoded><![CDATA[<p>1. Tomcat 6.0 다운로드</p>
<p><a href="http://tomcat.apache.org/" target="_blank">http://tomcat.apache.org/</a></p>
<p>2. 적당한 위치에 다운로드 받은 압축파일을 풀고 폴더명을 tomcat으로 변경</p>
<p>3. tomcat\conf\server.xml 파일 편집</p>
<p>port를 8888로 변경(8080포트가 oracle과 충돌되므로), URIEncoding=&#8221;euc-kr&#8221; 추가(한글처리)</p>
<p>4. tomcat\conf\context.xml 파일 편집</p>
<p>reloadable=&#8221;true&#8221; 추가</p>
<p>5. Eclipse 메뉴 Window -&gt; Open perspective -&gt; Servers 추가</p>
<p>Eclipse 아래 Servers 탭에서 마우스 오른쪽 버튼 클릭하여 new -&gt; apache -&gt; tomcat6.0 선택</p>
<p>Tomcat Installation directory 에서 browse 눌러 tomcat 디렉토리 선택</p>
<p>JRE는 자신의 JDK를 선택 후 Finish</p>
<p>그러면 Servers 탭에 생성한 Tomcat 항목이 생긴다.</p>
<p>6. Tomcat 항목 더블클릭</p>
<p>Overview 에서 Server Locations 를 Use Tomcat installation 선택,</p>
<p>Deploy path 를 자신의 tomcat\webapps로 변경 후 ctrl + s 저장하기</p>
<p>마지막으로 Servers 탭의 tomcat 항목 선택 후 마우스 오른쪽 버튼 클릭</p>
<p>메뉴에서 start 버튼을 누르면 tomcat이 실행된다.</p>
<p>http://localhost:8888/ 로 접속하여 제대로 tomcat이 실행되는지 확인한다.</p>
]]></content:encoded>
			<wfw:commentRss>http://jongsunkim.pe.kr/archives/1039/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DD, deployment descriptor</title>
		<link>http://jongsunkim.pe.kr/archives/937</link>
		<comments>http://jongsunkim.pe.kr/archives/937#comments</comments>
		<pubDate>Thu, 20 May 2010 13:07:01 +0000</pubDate>
		<dc:creator>Kim Jong-seon</dc:creator>
				<category><![CDATA[JSP&Servlet]]></category>

		<guid isPermaLink="false">http://jongsunkim.pe.kr/?p=937</guid>
		<description><![CDATA[A deployment descriptor (DD) refers to a configuration file for an artifact that is deployed to some container/engine. In the Java Platform, Enterprise Edition, a deployment descriptor describes how a web application or enterprise application should be deployed. It directs a deployment tool to deploy a module or application with specific container options, security settings and describes specific configuration [...]]]></description>
			<content:encoded><![CDATA[<p>A <strong>deployment descriptor</strong> (DD) refers to a configuration file for an artifact that is deployed to some container/engine.</p>
<p>In the Java Platform, Enterprise Edition, a deployment descriptor describes how a web application or enterprise application should be deployed. It directs a deployment tool to deploy a module or application with specific container options, security settings and describes specific configuration requirements. XML is used for the syntax of these deployment descriptor files. For web applications, the deployment descriptor must be called <em>web.xml</em> and must reside in a <em>WEB-INF</em> subdirectory at the web application root. For Java EE applications, the deployment descriptor must be named <em>application.xml</em> and must be placed directly in the <em>META-INF</em> directory at the top level of the application .ear file.</p>
<p>출처 &#8211; <a href="http://en.wikipedia.org/wiki/Deployment_Descriptor">http://en.wikipedia.org/wiki/Deployment_Descriptor</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jongsunkim.pe.kr/archives/937/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>MVC 패턴</title>
		<link>http://jongsunkim.pe.kr/archives/934</link>
		<comments>http://jongsunkim.pe.kr/archives/934#comments</comments>
		<pubDate>Thu, 20 May 2010 13:01:51 +0000</pubDate>
		<dc:creator>Kim Jong-seon</dc:creator>
				<category><![CDATA[JSP&Servlet]]></category>

		<guid isPermaLink="false">http://jongsunkim.pe.kr/?p=934</guid>
		<description><![CDATA[모델-뷰-컨트롤러(Model–View–Controller, MVC)는 소프트웨어 공학에서 사용되는 아키텍처 패턴이다. 이 패턴을 성공적으로 사용하면, 사용자 인터페이스로부터비즈니스 로직을 분리하여 애플리케이션의 시각적 요소나 그 이면에서 실행되는 비즈니스 로직을 서로 영향 없이 쉽게 고칠 수 있는 애플리케이션을 만들 수 있다. MVC에서 모델은 애플리케이션의 정보(데이터)를 나타내며, 뷰는 텍스트, 체크박스 항목 등과 같은 사용자 인터페이스 요소를 나타내고, 컨트롤러는 데이터와 비즈니스 로직 사이의 상호동작을 관리한다. 출처 &#8211; http://ko.wikipedia.org/wiki/MVC_패턴]]></description>
			<content:encoded><![CDATA[<p><strong>모델-뷰-컨트롤러</strong>(Model–View–Controller, MVC)는 소프트웨어 공학에서 사용되는 아키텍처 패턴이다. 이 패턴을 성공적으로 사용하면, 사용자 인터페이스로부터비즈니스 로직을 분리하여 애플리케이션의 시각적 요소나 그 이면에서 실행되는 비즈니스 로직을 서로 영향 없이 쉽게 고칠 수 있는 애플리케이션을 만들 수 있다. MVC에서 모델은 애플리케이션의 정보(데이터)를 나타내며, 뷰는 텍스트, 체크박스 항목 등과 같은 사용자 인터페이스 요소를 나타내고, 컨트롤러는 데이터와 비즈니스 로직 사이의 상호동작을 관리한다.</p>
<p>출처 &#8211; <a href="http://ko.wikipedia.org/wiki/MVC_%ED%8C%A8%ED%84%B4">http://ko.wikipedia.org/wiki/MVC_패턴</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jongsunkim.pe.kr/archives/934/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>자바 서블릿?</title>
		<link>http://jongsunkim.pe.kr/archives/931</link>
		<comments>http://jongsunkim.pe.kr/archives/931#comments</comments>
		<pubDate>Thu, 20 May 2010 12:33:40 +0000</pubDate>
		<dc:creator>Kim Jong-seon</dc:creator>
				<category><![CDATA[JSP&Servlet]]></category>

		<guid isPermaLink="false">http://jongsunkim.pe.kr/?p=931</guid>
		<description><![CDATA[자바 서블릿(Java Servlet)은 자바를 사용하여 웹페이지를 동적으로 생성하는 서버측 프로그램 혹은 그 사양을 말하며, 흔히 &#8220;서블릿&#8221;이라 불린다. 자바 서블릿은 Java EE사양의 일부분으로, 주로 이 기능을 이용하여 쇼핑몰이나 온라인 뱅킹 등의 다양한 웹 시스템이 구현되고 있다. 비슷한 기술로는 펄 등을 이용한 CGI, PHP를 아파치 웹 서버 프로세스에서 동작하게 하는 mod_php, 마이크로소프트사의 IIS에서 동작하는 ASP 등이 있다. CGI는 요청이 있을 때마다 새로운 프로세스가 생성되어 [...]]]></description>
			<content:encoded><![CDATA[<p><strong>자바 서블릿</strong>(Java Servlet)은 자바를 사용하여 웹페이지를 동적으로 생성하는 서버측 프로그램 혹은 그 사양을 말하며, 흔히 &#8220;서블릿&#8221;이라 불린다.</p>
<p>자바 서블릿은 Java EE사양의 일부분으로, 주로 이 기능을 이용하여 쇼핑몰이나 온라인 뱅킹 등의 다양한 웹 시스템이 구현되고 있다.</p>
<p>비슷한 기술로는 펄 등을 이용한 CGI, PHP를 아파치 웹 서버 프로세스에서 동작하게 하는 mod_php, 마이크로소프트사의 IIS에서 동작하는 ASP 등이 있다. CGI는 요청이 있을 때마다 새로운 프로세스가 생성되어 응답하는 데 비해, 자바 서블릿은 외부 요청마다 프로세스보다 가벼운 쓰레드로써 응답하므로 보다 가볍다. 또한, 자바 서블릿은 자바로 구현되므로 다양한 플랫폼에서 동작한다.</p>
<p>출처 &#8211; <a href="http://ko.wikipedia.org/wiki/%EC%9E%90%EB%B0%94_%EC%84%9C%EB%B8%94%EB%A6%BF">http://ko.wikipedia.org/wiki/자바_서블릿</a></p>
]]></content:encoded>
			<wfw:commentRss>http://jongsunkim.pe.kr/archives/931/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>tomcat manager 접속을 위한 환경설정</title>
		<link>http://jongsunkim.pe.kr/archives/914</link>
		<comments>http://jongsunkim.pe.kr/archives/914#comments</comments>
		<pubDate>Mon, 17 May 2010 12:23:08 +0000</pubDate>
		<dc:creator>Kim Jong-seon</dc:creator>
				<category><![CDATA[JSP&Servlet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>

		<guid isPermaLink="false">http://jongsunkim.pe.kr/?p=914</guid>
		<description><![CDATA[1. tomcat-users.xml tomcat6/conf/tomcat-users.xml 파일 manager와 admin을 추가하고 password를 설정한다. 그리고 페이지에서 Tomcat Manager 링크를 클릭 id와 password를 입력하고 접속하면 된다.]]></description>
			<content:encoded><![CDATA[<p>1. tomcat-users.xml</p>
<p>tomcat6/conf/tomcat-users.xml 파일</p>
<p><a href="http://jongsunkim.pe.kr/wp-content/uploads/2010/05/11.png"><img class="alignnone size-full wp-image-915" title="1" src="http://jongsunkim.pe.kr/wp-content/uploads/2010/05/11.png" alt="" width="664" height="619" /></a></p>
<p>manager와 admin을 추가하고 password를 설정한다.</p>
<p>그리고 페이지에서 Tomcat Manager 링크를 클릭</p>
<p>id와 password를 입력하고 접속하면 된다.</p>
<p><a href="http://jongsunkim.pe.kr/wp-content/uploads/2010/05/21.png"><img class="alignnone size-full wp-image-917" title="2" src="http://jongsunkim.pe.kr/wp-content/uploads/2010/05/21.png" alt="" width="586" height="494" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://jongsunkim.pe.kr/archives/914/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to install tomcat 6.0 on openSUSE</title>
		<link>http://jongsunkim.pe.kr/archives/908</link>
		<comments>http://jongsunkim.pe.kr/archives/908#comments</comments>
		<pubDate>Mon, 17 May 2010 12:10:34 +0000</pubDate>
		<dc:creator>Kim Jong-seon</dc:creator>
				<category><![CDATA[JSP&Servlet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jongsunkim.pe.kr/?p=908</guid>
		<description><![CDATA[1. 다운로드 http://tomcat.apache.org/download-60.cgi 에서 tomcat 6.0 버전을 받는다. 2. 설치 적당한 위치에 압축을 풀면된다. 나는 /srv/tomcat6 라는 폴더에 압축을 풀었다. 3. 설정 env 로 환경변수들을 확인한다. 우선 PATH 설정. /etc/profile 파일을 열어서 편집 아래 내용을 추가한다. Java, jre, tomcat 의 path를 설정하는 내용 (jdk가 설치되어 있는 디렉토리에 따라 path는 달라질 수 있음) export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun-1.6.0 export JAVA_BINDIR=/$JAVA_HOME/bin [...]]]></description>
			<content:encoded><![CDATA[<p>1. 다운로드</p>
<p><a href="http://tomcat.apache.org/download-60.cgi">http://tomcat.apache.org/download-60.cgi</a></p>
<p>에서 tomcat 6.0 버전을 받는다.</p>
<p>2. 설치</p>
<p>적당한 위치에 압축을 풀면된다.</p>
<p>나는 <span style="color: #0000ff;">/srv/tomcat</span>6 라는 폴더에 압축을 풀었다.</p>
<p>3. 설정</p>
<p>env 로 환경변수들을 확인한다.</p>
<p>우선 PATH 설정.</p>
<p><span style="color: #0000ff;">/etc/profile</span> 파일을 열어서 편집</p>
<p>아래 내용을 추가한다. Java, jre, tomcat 의 path를 설정하는 내용 <span style="text-decoration: underline;">(jdk가 설치되어 있는 디렉토리에 따라 path는 달라질 수 있음)</span></p>
<p><span style="color: #0000ff;">export JAVA_HOME=/usr/lib/jvm/java-1.6.0-sun-1.6.0</span></p>
<p><span style="color: #0000ff;">export JAVA_BINDIR=/$JAVA_HOME/bin</span></p>
<p><span style="color: #0000ff;">export JRE_HOME=$JAVA_HOME/jre</span></p>
<p><span style="color: #0000ff;">export PATH=$PATH:$JAVA_HOME/bin:$CATALINA_HOME/bin</span></p>
<p><span style="color: #0000ff;">export CATALINA_HOME=/srv/tomcat6</span></p>
<p><span style="color: #0000ff;">export CLASSPATH=.:$JAVA_HOME/jre/lib/ext:$JAVA_HOME/lib/tools.jar:$CATALINA_HOME/lib/jsp-api.jar:$CATALINA_HOME/lib/servlet-api.jar</span></p>
<p>4. 시작 &amp; 종료</p>
<p>tomcat6 디렉토리 아래 bin 으로 이동</p>
<p><span style="color: #0000ff;">startup.sh</span> 과 <span style="color: #0000ff;">shutdown.sh</span> 파일로 시작과 종료를 한다.</p>
<p><a href="http://jongsunkim.pe.kr/wp-content/uploads/2010/05/1.png"><img class="alignnone size-full wp-image-909" title="1" src="http://jongsunkim.pe.kr/wp-content/uploads/2010/05/1.png" alt="" width="518" height="152" /></a></p>
<p>5. 접속 확인</p>
<p>http://ip_address:8080</p>
<p><a href="http://jongsunkim.pe.kr/wp-content/uploads/2010/05/2.png"><img class="alignnone size-full wp-image-910" title="2" src="http://jongsunkim.pe.kr/wp-content/uploads/2010/05/2.png" alt="" width="624" height="424" /></a></p>
<p>*Firewall 의 8080 포트를 열어준다.</p>
]]></content:encoded>
			<wfw:commentRss>http://jongsunkim.pe.kr/archives/908/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

