開發工具: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配置篇