eclipse中java Dynamatic web的創建過程(或者eclipse中jsp的創建或eclipse開發環境(jdk,eclipse,tomcat)的測試)
阿新 • • 發佈:2017-06-11
alt 進行 lan .cn ges log image oct ips
1.啟動eclipse程序。
2.File-New->Dynamatic web project,如圖
3.右擊項目名-->new-->New jsp file--->
點擊Finish後,如下圖所示
4.在body中添加一句hello,world,如下圖所示
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
hello,world!
</body>
</html>
5.運行項目
點擊右鍵-->run as -->run on server-->Finish,運行結果如下,
註:此項目需要安裝tomcat,並且本例使用的是外部服務器,需要在eclipse中的perefernce中進行設置。
eclipse中java Dynamatic web的創建過程(或者eclipse中jsp的創建或eclipse開發環境(jdk,eclipse,tomcat)的測試)