![]() Go to the services menu and then click on "Servers" and then right-click on "Apache Tomcat" and choose "Properties" as in the following: Step 3: Run The Project using Tomcat Server.įirst recheck the Tomcat configuration if you have changed the default port number of Apache Tomcat then you need to do the same in the Netbeans IDE.įor changing the port number of the Tomcat Server use the following. Now change some coding in the default JSP page as given below.Ĭhange the heading: "Welcome To The JSP Web World!" as in the following: Now a window is generated containing the default index.jsp file in Web Pages under JspWebApplication. It's your choice whether you want your username and password or you want the default created by the Netbeans IDE. As in the following:Īfter providing the server path you will see two more options for username and password. Note that you need to provide the path up to the bin directory of Tomcat Server. Now, click on the Browse button and find the server location where you have stored the Apache Tomcat Server (in my system it is in "E:\myserver\tomcat7.0.40\bin"). Now a window opens asking for the server location. For Tomcat Server choose it (Apache Tomcat on screen) and click on "Next". In this article I used Tomcat Server 7.0.40. Since I already set up the Tomcat Server, it is shown there but when you do it the first time it shows blank, see the image below.įirst you need to configure Apache Tomcat Server 7.0.40įor configuration of the Tomcat Server follow my previous article from the following link:Īfter clicking on Add, a list of servers opens. First go to the server and click on "Add server". ![]() Now a new window is generated for the server and setting the wizard. Now change the name (I used "JspWebApplication") according to your project and click on "Next". A new window is generated with a default project name. Now click on file menu and select New Project then select Java Web and then Web Application as follows.įrom the file menu select "New Project" -> "Java Web" -> "Web Application" as in the following figure: Open the Netbeans IDE to start your project. ![]() Step 1: Start creating web application project ![]() Last and finally, start the Tomcat Server and deploy the project.Start by creating a "Java web" -> "web application project".To create a JSP web page in the Netbeans IDE we must do the following three main steps: ![]() I opened the properties and browsed to the web pages folder and still get same message.In this article we discuss how to create a JSP web page in the Netbeans IDE 7.4 using the Tomcat Server 7.0.40. Open the project properties and in sources category browse the correct web pages folder" It runs and then gives me the following message and eliminates the HelloWorld folder from the webapps folder:Ĭannot find the Web Pages folder "C:\Program Files\apache-tomcat-6.0.20\webapps\HelloWorld" I dont want to use any frameworks so I hit the finish button.Īfter I hit the finish button I see the HelloWorld web application and right click on it to select Run. I then selected Java EE 5 for the Java EE version. Project Folder: C:\Program Files\apache-tomcat-6.0.20\webapps\HelloWorld Project Location: C:\Program Files\apache-tomcat-6.0.20\webapps Now I am creating my first Web site with NetBeans 6.7 and want to start with just creating a JSP HelloWorld web page. In the past I had no problems manually creating JSP/Servlets and classes using command line and notepad with no IDE using Tomcat 6.0.20. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |