Servlets must be created in a web module and therefore must reside in
a package located under the WEB-INF/Classes directory of the web module.
The HelloServlet node appears in the Explorer and opens in the Source Editor.
/* output your page here */ out.println("<html>"); out.println("<head>"); out.println("<title>Servlet</title>"); out.println("</head>"); out.println("<body>"); String greeting = "Kamille"; out.println("<h1>Hello Everyone from " + greeting +"!</h1>"); out.println("</body>"); out.println("</html>"); out.close(); }
The execution and output window appear. In the status bar, messages are displayed to indicate that the iPlanet Application Server is getting started (or restarted). The WAR file is getting deployed, and the Web browser is opening.
When the iPlanet Application Server is starting, the KJS process you launched from the previous section is killed. Then the WAR file is created and deployed and a new KJS process is started.
The Forte browser opens to http://<server>/NASApp/<webmodule>/HelloServlet URL.
See also | |
---|---|
Performing Local Debugging |