Contents: * Machine specification used in this task * Pre requirement * Setting Up a Web Application Project * Creating and Editing Web Application Source Files * Creating a Java Package and a Java Source File * Generating Getter and Setter Methods * Editing the Default JavaServer Pages File * Creating a JavaServer Pages (JSP) File * Building and Running a Web Application Project
The original tutorial can be found at netbeans.org. All credits must go to the original authors. In this tutorial we try to refine all the steps to more details using screen shots. Machine specification used in this task are: * Intel Pentium Core 2 Duo, 2.2 GHz, * Windows XP Pro SP2 + periodical patches + periodical updates… * 2 GB DDR2 RAM * 160 GB SATA HDD * 17” SyncMaster 713N monitor. Pre requirement 1. NetBeans 6.x.x
2. To work through this tutorial, you must have a server registered in the IDE. The Web and Java EE installation enables you to optionally install and register the Apache Tomcat servlet container 6.0.14, and the GlassFish V2 application server.
3. If you are installing NetBeans IDE for the first time, you need to have the Java SE Development Kit (JDK) installed. The JDK includes the Java Runtime Environment (JRE), as well as various tools and API's necessary for development in Java.
Setting Up a Web Application Project 1. Choose File > New Project (Ctrl-Shift-N) from the main menu. Under Categories, select Web. Under Projects, select Web Application then click Next.
2. In Step 2, enter HelloWeb in the Project Name text box. Notice that the Context Path (i.e., on the server) becomes /HelloWeb.
3. Specify the Project Location to any directory on your computer. For purposes of this tutorial, this directory is referred to as $PROJECTHOME.
4. Select the server to which you want to deploy