HOW TO DESIGN A WEB PAGE USING JAVA

Shyam Modi
3 min readApr 12, 2019

--

Introduction

For this particular task we need a help of an IDE(Integrated Development Environment) that would provide all the necessary components to design a web page.

· The IDE that would be suitable for this task is NetBeans.

· NetBeans is an open-source integrated development environment (IDE) for programming languages like Java, C++ etc.

· It uses components or modules for software development. It also installs the components and allows users to download updated features.

Setting Up a Web Application Project

· Now we will create a basic web application, deploy it to a server and see the final result in a browser using NetBeans.

· NetBeans uses Java Server Pages(JSP) page to type your name.

· Choose File > New Project (Ctrl-Shift-N) from the main menu.

· Under Categories, select Web. Under Projects, select Web Application then click Next. Then enter name of the project (WebApplication2) in the Project Name text box.

· Select the server to which you want to deploy your application. Only servers that are registered with the IDE are listed. Also select the project location and folder to assign it to a directory. Then click next.

· The IDE will automatically create a folder with your sources and project metadata. The WebApplication2 project opens in the IDE.

· Select Java EE version, server and click finish.

Web Application Project

NetBeans uses an Ant build for web applications. The IDE generates the build script based on the information you gave in the New Project.

HTML CODE
  1. In the Projects window, right-click the WebApplication2 project and click Run. The IDE builds the web application and puts it to the server you chose when creating the project.

2. After clicking run, a web browser(firefox) will open, show title and content your added.In conclusion, we have created a simple web application using NetBeans IDE, deploy it to a server, and view its presentation in a browser.

--

--