1. 程式人生 > >在eclipse中配置tomcat以及測試tomcat是否配置成功

在eclipse中配置tomcat以及測試tomcat是否配置成功

eclipse中配置tomcat

使用eclipse開發web專案時,首先要在eclipse中配置web伺服器,然後就可以在eclipse中建立web專案直接部署到web伺服器中去,


使用eclipse測試java web程式

使用eclipse開發web程式

步驟:專案建立、建立jsp檔案、配置web伺服器,釋出專案





1.建立jsp檔案




<%@ 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>WebProject</title>

</head>

<body>

this is my first web project!

</

body>

</html>


3.配置web伺服器tomcat......

4.釋出專案