利用eclipse開發動態web項目

來源:互聯網
上載者:User

由於myeclipse為收費工具,考慮到侵權行為,故選擇eclipse作為開發web項目的工具,不過開發利用的各架構時,需要進行手動安裝外掛程式或配置,以下僅僅說明了開發、發布、運行一個web項目的過程。

1、環境:win7,jdk1.6,Eclipse Java EE IDE for Web Developers:Version: Indigo Service Release 2

2、建立tomcat伺服器

控制台位置的選項“servers”,中建立伺服器。

本紅圈中可以選擇下載其他推薦的web容器,有小型的jetty等。

3、建立一個web項目:

new ->new project ->web -> dynamic web project

4、建立一個index.jsp檔案,預設不自動產生的。

<body>
    welcome to Eclipse for J2EE Developer Center,歡迎!
    <%=new Date().toLocaleString() %>
</body>

5、發布項目:

在“servers”選項下的伺服器選中右鍵,add and remove...

add and finish,ok.

6、啟動tomcat服務:

在“servers”選項下的伺服器選中右鍵,start,ok

訪問:http://localhost:8080/dynamicweb/  正常

 

其他架構和組件需讀者自己研究。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.