I. Download Tomcat and Eclipse
Download Tomcat
: http://tomcat.apache.org/download-70.cgi
After downloading, unzip as
Download eclipse
: http://www.eclipse.org/downloads/eclipse-packages/
After downloading, unzip as
Two. Configuring the Environment
1. Open Eclipse and create a new dynamic Web Project. Add the project name and Target Runtime.
2. Create a new JSP file in WebContent index.jsp
3. Edit File Contents
1 <%@ Page Language="Java"ContentType="text/html; charset=iso-8859-1"2 pageencoding="iso-8859-1"%>3 <!DOCTYPE HTML PUBLIC "-//w3c//dtd HTML 4.01 transitional//en" "Http://www.w3.org/TR/html4/loose.dtd ">4 <HTML>5 <Head>6 <Metahttp-equiv= "Content-type"content= "text/html; charset=iso-8859-1">7 <title>Insert Title here</title>8 </Head>9 <Body>Ten <Center>First Java Web Test</Center> One </Body> A </HTML>
4. Click Run
5. Running Results
Eclipse + Tomcat Development environment configuration