JavaDeploy
SiteMap
JSP - Servlets
JDBC
EJB Concepts
Entity Beans
Servlet Configuration
«Prev
Next»
Servlet Intro
Java Servlets
HTTP Stateless Information
Problems with CGI
Java Servlet Advantages.
Servlet GET Requests
Software Configuration
Java Servlet Development Kit
Text Editor
Configuring JSDK
Servlet Page Generation
doGet Servlet Method.
Simple Servlet generates HTML
Generating Page from Servlet
Maintaining Servlet State
HTML Form Creation
Form Servlet Communication
Generating Servlet Form
Processing Servlet Form
Web Page Generation
Servlet Database Connection
What is JDBC?
Applet Servlet Interaction
Display Servlet Response
Exercise: Testing and administering the Java Web Server
Test the Java Web Server
Objective:
Test the Java Web Server.
Exercise scoring
This exercise is worth 1 point. The exercise is auto-scored, which means that all you have to do to receive credit for it is click the
Submit
button below.
Instructions
In this exercise you will configure the Java Web Server.
Start the Java Web Server by opening an MS-DOS prompt, changing to the bin subdirectory of your Java Web Server directory, then typing:
httpd
Do not close the MS-DOS prompt.
Bring up a browser and enter the URL to the sample HTML file:
http://localhost:8080
You should see the file in the browser.
Next, enter the URL to the sample servlet, SimpleServlet:
http://localhost:8080/servlet/SimpleServlet
Be sure that the JSDK server is not running when you load this page. You want to know that it came from the JWS.
Do not let the folder name, servlets, confuse you. The URL path uses the word servlet.