Developing JSP projects under Linux (Hello World)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.