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
Configuring JSDK
Text Editor
JSDK Server
Java Web Server
Installing Java Web Server
Testing Administering Web Server
Other Web Servers
Non Servlet Server Add Ons
Webserver Config Conlusion
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
Start Web Server
Processing Servlet Form
Web Page Generation
Servlet Database Connection
What Is JDBC
JDBC Servlets
SQL Commands
JDBC Data Source
JDBC Connection
Datasource Java
Read Data From Resultset
JDBC Resultset Example
Write To Database
Servlet Operations Conclusion
Applet Servlet Interaction
Java Browser Versions
Java Applet Tutorial
Send Get Servlet
Connect Server Get Request
Servlet Receives Get Request
Display Servlet Response
Reading Servlet Response
AppletServlet Communication Conclusion
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.