THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
This application is a simple Hello World application which will output Hello World!! on the browser. It needs a Dynamic Web project and a JSP associated with it.
...
Creating a Dynamic Web Project using Eclipse
- Launch Eclipse
...
- and Switch to Java EE perspective.
- Right Click under project explorer and Select Dynamic Web Project as shown in the figure
- Name the project as HelloWorld.
- Keep default values for all the fields and Select Finish.
Create a dynamic web project with the name "HelloWorld". See How to create a dynamic Web Project using EclipseAdding a JSP to the project
...
- Right Click on the project HelloWorld and create a new JSP as shown in the figure.
- Give the name as hello.jsp and Select Finish.next. Select Finish on the next screen
- Modify the code of hello.jsp as follows
Code Block title hello.jsp borderStyle solid <%@ 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>Hello World</title> </head> <body> Hello World!! </body> </html>
...
- Deploy the application on the server.
- launch the application using http://localhost:8080/HelloWorld/hello.jsp
- This will display HelloWorld!! on the browser window.