Fundamentals of JavaTM Servlets: Magercises
Behavior: Accessing Servlet
Service-Time Parameters

By MageLang Institute

[Help | Solution | API Docs | Expected Output | Course Notes | Magercises | Module Intro]

When the ServletParameterTest servlet is successfully run from a browser without specifying any parameters, the output will be:

Parameter Test Servlet

null, I'm glad to see that you have achieved the position of null

When the servlet is run with parameters, they will be reflected in the browser's display. For example, using the following parameters:

.../ServletParameterTest?name=Sam&position=president

will produce the following output:

Parameter Test Servlet

Sam, I'm glad to see that you have achieved the position of president

Copyright © 1998 MageLang Institute. All Rights Reserved.