<< Chapter < Page Chapter >> Page >
The purpose of this module is to get you started writing, deploying, and testing Java servlets.

Table of contents


This module is one in a collection of modules designed for teaching INEW 2338 Advanced Java (Web) at Austin Community College in Austin, TX. The purpose of this module is to get youstarted writing, deploying, and testing Java servlets.

Servlets, search engines, or JSON

As explained in the page titled Java4510: Preface to INEW 2338 , only one of the topics Search Engines , Servlets , or JSON is covered in the course in any particular semester. However, all three are important. The course material in the Blackboard course management programindicates which topic is covered in the current semester.

Students are encouraged to study all three topics for their own educational purposes in order to enhance their prospects of landing a job as a Java programmer.

Getting started

If you haven't done so already, I strongly recommend that you study the following two modules before continuing with this module:

While studying Java4308 , I recommend that you download, install on your local machine, and test the Apache Tomcat web server. Eventually students enrolled in this course will deploy and test their servlet programs on a web server operated by thecollege. However, the first several modules in this sub-collection will expect students to deploy and test servlets on a local web server.

Viewing tip

I recommend that you open another copy of this module in a separate browser window and use the following links to easily find and view the Figures and Listings while you are reading about them.



General background information

Test for a successful connection on localhost

Assuming that you have properly installed the Tomcat web server on your machine, you should be able to start the server and point your browser to http://localhost:8080/ to see something similar to Figure 1 in your browser.

Figure 1 - Web server test.

Missing Figure

If you don't see that, you should probably rectify the problem before continuing.

While you are there, stop and examine the page showing in your browser window. It is packed with information regarding Tomcat, includingdocumentation and the source code for numerous servlet and JSP examples.

Upgrading your Java development environment

In Java4308 , I showed you how to upgrade your Java development environment to include twojar files named

  • servlet.jar
  • server.jar

I also explained that only the first one may actually be required, but since they are both small, there is no harm in having both of them on your machine.

Questions & Answers

important of enocomic
Adu Reply
what is division of labour
Dennis Reply
division of labour can be defined as the separation of task to individuals in any economic system to specialize on it.
what is demand curve
Victoria Reply
demand curve is a downward sloping economic graph that shows the relationship between the price of product and the quantity of the product demanded.
What is demand
Frank Reply
It refers to the quantity of a commodity purchased in the market at a price and at a point of time.
refers to amount of commodities a consumer is willing and able to buy at particular price within a period of time
It is the ability and willingness a customer buys a product or service at a particular price, place and time while other things remaining constant or the same
In which case is opportunity cost is zero
Francis Reply
where no alternative is available
who is the father of economic
Omar Reply
Adam Smith
Adam Smith
Adam smith
Adam Smith
What is monopoly
Mauthoor Reply
it an economic situation where one individual controls the essential commodities or value product for maximum profit
monopoly is a market situation in which there is only one producer of a good or service which has no close substitutes
is where only one person is solely the price taker
what is Monopoly
Dauda Reply
The word Monopoly is a Latin word. it is the combination of two words-Mono means single and Poly means seller. thus Monopoly means single seller. but this is not the full meaning of Monopoly. Monopoly must produce a product which does not have close substitute in the market.
Monopoly is define as a firm in an industry with very high barriers to entry.
If close substitute is available, Monopoly will be a king without a crown.
what does it array
Cbdishakur Reply
what are the differences between monopoly and.oligopoly
Onome Reply
what are the difference between monopoly and oligopoly
The deference between Monopoly and Oligopoly: Monopoly means:A single-firm-Industry producing and selling a product having no close business and Oligopoly means:A market structure where a few sellers compete with each other and each controls a significant portion of market .
so that the price-output policy one affects the other.
what are difference between physical policy and monotory policy
what is economic
Emakpor Reply
what is economic
the word economic was derived from the Greek word oikos (a house)and mein(to manage) which in effect meant managing a household with the limited funds available 🙂.
good excample about scarsity
An Enquiry into the nature and causes of wealth Nations, this book clearly defined what economic is🙂🙂🙏🙏 thank you...
good example about scarcity: money,time, energy, human or natural resources. Scarcity of resources implies that there supply is very much limited in relation to demand.
equilibrium is a situation in which economic forces such as demand and supply are balanced and in the absence of external influences,the value of economic variables will not change
Onome Reply
marginal cost and marginal revenue is equilibrium .
what is equilibrium
Rodrice Reply
policy prescriptions for unemployment
Jeslyne Reply
Am working on it
what are the factors effecting demand sedule
Kalimu Reply
we should talk about more important topics, you can search it on Google n u will find your answer we should try to focus on how we can improve our society using economics
so good night
Why do people buy more grapes in December than in July?
because at time know money
Researchers demonstrated that the hippocampus functions in memory processing by creating lesions in the hippocampi of rats, which resulted in ________.
Mapo Reply
The formulation of new memories is sometimes called ________, and the process of bringing up old memories is called ________.
Mapo Reply
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get the best Algebra and trigonometry course in your pocket!

Source:  OpenStax, Object-oriented programming (oop) with java. OpenStax CNX. Jun 29, 2016 Download for free at https://legacy.cnx.org/content/col11441/1.201
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Object-oriented programming (oop) with java' conversation and receive update notifications?