JSP初探

開發工具:Eclipse 
網頁: Dynamic Web project
步驟:
1、新建Dynamic Web project
2、新建JSP文件
3、寫入下面代碼:
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!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=UTF-8">
<title>菜鳥教程</title>
</head>
<body>
<%
out.println("Hello World!");
%>
</body>
</html>
4、右鍵run on server
server配置請轉至Server配置篇
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章