NOTE - Before you deploy a J2EE application that accesses a database, amke sure the database is running.
Before deploying the application, you will set up a Servlet Context for the Web Module. Subsequently, you are ready to deploy, run, and examine the debugging facilities of the IDE.
The context root provides a way to distinguish resources in your application from resources in other applications deployed to the same server instance. You set the servlet context on the included web module's property sheet. With this value, end users will be able to access the servlets at http://hostname:port/servlet_context/servlet_name.
To define the context root of the web module:
To deploy the application:
Several views appear in the output window while a Progress Monitor window shows the deployment progress. Wait for the Progress Monitor to close automatically.
(server1(localhost:port))
.Point your web browser to the index.html
page to start the application. Once the web page is displayed, enter your name and click the Process button.
To run the application:
http://localhost/
servlet_context/index.html
When the web browser connects to the server, the server1: access view in the output window displays a new line.
As the servlet, EJB, and JSP page are executed, the output of System.out.println
statements are displayed in the server1: server.log view in the output window.
here
link to display a log as generated by the bean_nameLogView.jsp
JSP page.More entries are appended in the output window.
(server1(localhost:port))
.