开发工具: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配置篇![]()