好湿?好紧?好多水好爽自慰,久久久噜久噜久久综合,成人做爰A片免费看黄冈,机机对机机30分钟无遮挡

主頁 > 知識庫 > 快速建立Servlet和JSP的運(yùn)行、調(diào)試和編譯環(huán)境

快速建立Servlet和JSP的運(yùn)行、調(diào)試和編譯環(huán)境

熱門標(biāo)簽:四川電信外呼系統(tǒng)靠譜嗎 電銷外呼系統(tǒng) 排行榜 珠海銷售外呼系統(tǒng)運(yùn)營商 地圖標(biāo)注創(chuàng)業(yè)項目入駐 廣州三五防封電銷卡 外呼系統(tǒng)啥意思 地圖標(biāo)注制作道路 長春回?fù)芡夂粝到y(tǒng)廠家 山東智能云外呼管理系統(tǒng)
相信很多剛開始學(xué)習(xí)Servlet和JSP的朋友都有一個困擾,就是如何快速方便的建立一個Servlet和JSP的運(yùn)行、調(diào)試和編譯環(huán)境。本人現(xiàn)在正在國外攻讀MIT(Master of Information Technology),現(xiàn)在選修的這一科是WBIS(Web Based Information Systems),其包含了許多種技術(shù),如Java,Perl,CGI,Servlet,ASP,Java Script,JSP,OO,UML等等。下面的這篇文章是學(xué)校所提供的相關(guān)軟件的下載地址、安裝方法以及相關(guān)說明,其中的所需的軟件(學(xué)校已經(jīng)給我們提供了CD)我已經(jīng)全部安裝并測試過。這里,我極力推薦給大家,因為整個安裝過程非常的簡單,只要按照下面文章中的方法一步一步做,100%可以成功,相信會給你帶來幫助。雖然文章是全英文的,但很簡單,相信大家都能明白。如果有什么問題,希望大家能提出來我們一起討論。







(注:文章中所提到的四個軟件分別是JDK 1.3.1,BlueJ 1.2.0,Apache Tomcat 4.0和bluej_tomcat_config.zip。其中BlueJ是用來創(chuàng)建、編譯Servlet的,而最后那個zip文件則是配置BlueJ和Tomcat的。)







BlueJ, Jakarta Tomcat and Java 2 SDK Installation







1. Install the Java 2 Software Development Kit (JDK)







It is recommended that you install JDK 1.3.1, which can be downloaded from here(http://www.csu.edu.au/faculty/sciagr/sis/subjects/itc357/j2sdk-1_3_1-win.exe), or from http://java.sun.com (unfortunately it is a 30M download so if you have a slow modem it may be better to acquire it on CD. For example, there is a CD containing JDK with many Java text books).







Install JDK to the default directory, which is c:\jdk1.3.1







You may use a different version of JDK (1.2 or later) but you will need to change the Tomcat configuration files startup.bat and shutdown.bat to point to the directory location.







2. Install BlueJ (BlueJ is a basic Java editing and compilation environment that sits on top of JDK)







It is recommended that you install BlueJ 1.2.0, which can be downloaded from here(http://www.csu.edu.au/faculty/sciagr/sis/subjects/itc357/bluejsetup-120.exe) or from http://bluej.org







Install BlueJ to the default directory c:\BlueJ







If you install a different version of BlueJ or place it in a different directory the configuration files provided in bluej_tomcat_config.zip will not automatically go into the correct directories and you will have to manually extract each one.







3. Install Apache Tomcat (Tomcat is a Java web application server and will allow you to test your Servlets and JSP files locally)







It is recommended that you install Apache Tomcat 4.0, which can be downloaded from here(http://www.csu.edu.au/faculty/sciagr/sis/subjects/itc357/jakarta-tomcat-4.0.4.exe) or from http://jakarta.apache.org/







Install Tomcat to the default directory c:\Program Files\Apache Tomcat 4.0







If you install a different version of Tomcat or place it in a different directory, you will need to configure it manually as the configuration files provided in bluej_tomcat_config.zip will not automatically go into the correct directories and various paths settings contained in them will not be correct.







4. Configure BlueJ and Tomcat to work together







The recommended way to do this is to download the file bluej_tomcat_config.zip(http://www.csu.edu.au/faculty/sciagr/sis/subjects/itc357/bluej_tomcat_config.zip) and extract the files to the root directory on drive c:, making sure that you choose the option to use folder names.







If you need to manually configure BlueJ or Tomcat, you need to troubleshoot problems or you want to examine the configuration options chosen, they are explained here.



Compiling and Running Servlets on Your Local Machine







1. Run BlueJ and open the existing project in the c:\Program Files\Apache Tomcat 4.0\webapps\testing\Web-inf\classes directory







2. Create a new class and enter the code for your servlet, or use Edit-Add class from file to import an existing servlet source file.







3. Compile the servlet.







4. Start tomcat by double-clicking on startup.bat in the c:\Program Files\Apache Tomcat 4.0\bin directory. This will start Tomcat listening on port 8080 on your local machine (you don't need to be online).







5. Start up your web browser and open the URL http://localhost:8080/testing/servlet/Servletname where Servletname is the name of your servlet.



File locations and relative references within local and remote servlets







HTML files located in a directory like c:\Program Files\Apache Tomcat 4.0\webapps\testing will be accessible through a URL like http://localhost:8080/testing/filename.html







Similarly if you place an HTML file in your home directory on the SWAP server it will be assessible through a URL like http://swap.csu.edu.au:8080/username/filename.html







If you need to place an image in a page generated by a servlet, you can place it in c:\Program Files\Apache Tomcat 4.0\webapps\testing (or on the swap server in your home directory) and refer to it in the HTML as ../imagename.jpg (eg. IMG SRC="../imagename.jpg">)







If you need to link to another servlet or specify another servlet within the ACTION attribute of a form, you can simply use the servlets name. For example you could use the code A HREF="OtherServlet"> to link to another servlet assuming that you have a file in the testing\Web-inf\classes directory called OtherServlet.class (or in your Web-inf\classes directory on the SWAP server)







If you have a static HTML page that has a link to a servlet or a form with an ACTION attribute that refers to a servlet, and the HTML page is located in the c:\Program Files\Apache Tomcat 4.0\webapps\testing directory or in your home directory on the SWAP server, use the URL servlet/ServletName to refer to the servlet (eg. ACTION="servlet/ServletName").







It is recommended that you use relative references like these in your HREF, SRC and ACTION attributes so that you can easily move your pages from the local machine to the server.
您可能感興趣的文章:
  • JSP、Servlet中g(shù)et請求和post請求的區(qū)別總結(jié)
  • jsp和servlet操作mysql中文亂碼問題的解決辦法
  • jsp引用servlet生成的驗證碼代碼演示
  • jsp和servlet的區(qū)別探討
  • JSP與Servlet的介紹說明
  • Servlet與JSP間的兩種傳值情況
  • 在Jsp Servlet中頁面重新定向總匯
  • JSP/Servlet應(yīng)用程序優(yōu)化八法
  • 在jsp中用bean和servlet聯(lián)合實現(xiàn)用戶注冊、登錄
  • JSP學(xué)習(xí)之Servlet用法分析

標(biāo)簽:玉樹 廣元 紹興 潮州 肇慶 北海 保定 吳忠

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《快速建立Servlet和JSP的運(yùn)行、調(diào)試和編譯環(huán)境》,本文關(guān)鍵詞  快速,建立,Servlet,和,JSP,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《快速建立Servlet和JSP的運(yùn)行、調(diào)試和編譯環(huán)境》相關(guān)的同類信息!
  • 本頁收集關(guān)于快速建立Servlet和JSP的運(yùn)行、調(diào)試和編譯環(huán)境的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    主站蜘蛛池模板: 荷兰熟女性XXXX另类| 渡佛男主和女主第一次| 性free毛茸茸偷窥videos| 神女宫修仙3D第一季在线观看| 色视频播放| 4个女王玩男m| 六月丁香婷婷综合| 狠狠添| 办公室娇喘的短裙校花| 777奇米第四在线精品视频| 中国新婚之夜A级黄| 午夜久久久久久| 三级全黄的视频| 秋霞电影网剧情简介| 99国产精品偷窥熟女精品视频| 调教姨妹| 我和替身渣攻恋爱后白月光回来了| 国产?高潮?白浆?喷水下载 | 三人成全免费观看电视剧美女| 牧教师在线观看动漫网| 粉红女郎韩国在线观看视频| 国产在线精品人成导航| 亚洲欧美综合网| 91精品国产综合久久久果冻传媒 | 性饥渴老妇XXXⅩOO| 一级黄色毛片子| 中文字幕精品一区二区三区| 红楼梦婬史A片免费看| 免费啪啪网| 国产精品探花Av视频88v| 久久精品国产亚洲7777小说| 波多野结衣在线免费观看| 亚洲猛色少妇XXXXX| 美女毛片视频| 2018天天躁日日躁狠狠躁| 男人日女人逼视频| 十八般床艺| 午夜福利乱码一区二区| 动漫美女丝袜被?的动漫| 小黄瓜网站| 色花堂国产精品第二页|