Test environment:
Host System: Win 7
Virtual machines: VMware Workstation 11.1.0
Virtual Machines Os:centos 6.5 bit Kernel 2.6.32-431-e16.x86_64
MyEclipse : 1.0
Tomcat : 6.0.43
??
1. run Myeclipse#./myeclipse under graphical interface &
2. New Project
3. Select myeclipse?–> web?–> JSP (Basic Templates)
4. Enter the project name ? HelloWorld
5. Edit the code
<%@ 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" >
<meta http-equiv= "Content-type" content= "text/html; Charset=utf-8 ">
<title>insert title here</title>
<body>
??? Hello world!
</body>
6. set up the Web server Tomcat
Windows?–> preferences?–>? myeclipse?–> servers?–> Runtiem Environment
7. Click on "add" to add, choose the version of your own Tomcat installed under Linux , I installed the Tomcat 6.0
Select Tomcat installation directory
on the right, click "Restore" Button
Click " Run " Button
you can see that the server is started, and then click "Add/remove devements." button to select the item to run
Select the project to run
Open Firefox input :
http://localhost:8080/test_hello_world/Helloworld%201.0.jsp
? ?
Test success
Developing JSP projects under Linux (Hello World)