Home » Search

About project

71-80 of 200Refresh
Tutorial
8

Step 4: Add a Servlet Class

In this step we will add a servlet to manage guestbook web requests: Open the [New Servlet] dialog box by right clicking the guest package node (in the [Projects] window) and selecting New > Servlet... Enter GuestServlet as the class name - use exactly that case sensitive class name. The Java
Tutorial
8

Step 4: Run the Application

You can run the application now by right clicking the Main node (in the [Projects] window) and selecting Run File. The expected output in the [Output] window, is: Total Points: 1000 Average X: 499.5 (0,0) (1,1) (2,2) (3,3) : : (998,998) (999,999) When you run the application
Tutorial
8

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New > JSP... Enter guest as the jsp file name - use exactly that case sensitive class name. Click Finish
Tutorial
8

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook page output: Open the [New JSP File] dialog box by right clicking the Web Pages node (in the [Projects] window) and selecting New > JSP... Enter guest as the jsp file name - use exactly that case sensitive class name. Click Finish
Tutorial
8

Step 5: Add a JSP Page

In this step we will add the JSP that generates the guestbook HTML output: Open the [New JSP File] dialog box by right clicking the WEB-INF node under the Web Pages node (in the [Projects] window) and selecting New > JSP... Enter guest as the jsp file name - use exactly that case sensitive class
Tutorial
8

Step 6: Run the Java EE 6 Application

You can run the application now by right clicking the GuestServlet node (in the [Projects] window), selecting Run File, and then clicking OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created under the GlassFish directory (e.g
Tutorial
8

Step 6: Run the Java EE 6 Application

You can run the application now by right clicking the GuestServlet node (in the [Project Explorer] window) and selecting Run As > Run on Server > Finish: Since we are using ObjectDB in embedded mode - the database file is created under the GlassFish directory (e.g. at domains\domain1\eclipseApps
Tutorial
8

Step 6: Run the Web Application

You can run the application now by right clicking the GuestServlet node (in the [Project Explorer] window) and selecting Run As > Run on Server > Finish: Since we are using ObjectDB in embedded mode - the database file is created under the Tomcat directory. You can stop the Tomcat server and open
Tutorial
8

Step 6: Run the Web Application

You can run the application now by right clicking the GuestServlet node (in the [Projects] window), selecting Run File, and then clicking OK (no need to change the servlet execution URI). Since we are using ObjectDB in embedded mode - the database file is created under the Tomcat directory
Tutorial
8

Step 6: Set the Spring XML

node in the [Projects] window, select New > Other... and then choose the XML category, XML Document