Get WebSphere Application Server Express V6 Developers Guide and Development Examples 1st Ed Edition Bill Moore Free All Chapters
Get WebSphere Application Server Express V6 Developers Guide and Development Examples 1st Ed Edition Bill Moore Free All Chapters
https://ebookfinal.com/download/websphere-j2ee-application-
development-for-the-ibm-server-iseries-server-1st-ed-edition-ibm-
redbooks/
https://ebookfinal.com/download/java-ee-5-development-using-glassfish-
application-server-1st-ed-edition-david-r-heffelfinger/
https://ebookfinal.com/download/ibm-websphere-datapower-soa-appliance-
handbook-1st-edition-bill-hines/
Beginning Oracle Application Express 4 1st Edition Doug
Gault
https://ebookfinal.com/download/beginning-oracle-application-
express-4-1st-edition-doug-gault/
https://ebookfinal.com/download/oracle-application-
express-4-recipes-1st-edition-edmund-zehoo-auth/
https://ebookfinal.com/download/pro-oracle-application-express-4-2nd-
edition-tim-fox/
https://ebookfinal.com/download/sql-server-2000-fast-answers-for-dbas-
and-developers-joseph-sack/
https://ebookfinal.com/download/mysql-cookbook-2nd-edition-solutions-
examples-for-database-developers-and-dbas-paul-dubois/
WebSphere Application Server Express V6 developers
guide and development examples 1st ed Edition Bill
Moore Digital Instant Download
Author(s): Bill Moore
ISBN(s): 9780738493671, 0738493678
Edition: 1st ed
File Details: PDF, 15.07 MB
Year: 2005
Language: english
Front cover
WebSphere Application
Server-Express:
A Development Example for New Developers
Building a sample
application
Bill Moore
Mark Buensalido
Gwendolyn Gaumond
Bo Gong
Ilaria Gorla
Doug Grove
Ryan Karchner
Stelios Psarras
Pasi Valjus
ibm.com/redbooks
International Technical Support Organization
November 2003
SG24-6301-00
Note: Before using this information and the product it supports, read the information in
“Notices” on page xiii.
This edition applies to Version 5.0 of WebSphere Studio and to Version 5.0 of WebSphere
Application Server - Express for use on Windows.
Notices . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiii
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xiv
Preface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xv
The team that wrote this redbook. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xvi
Become a published author . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xix
Comments welcome. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . xx
Chapter 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1 Our objectives . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.1.1 WebSphere Application Server - Express defined . . . . . . . . . . . . . . . 4
1.2 The focus of this redbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
1.2.1 WebSphere Application Server - Express users . . . . . . . . . . . . . . . . . 5
1.2.2 Application stages . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
1.3 How to use this redbook . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Contents v
6.1.1 Benefits of building a prototype. . . . . . . . . . . . . . . . . . . . . . . . . . . . 148
6.1.2 Before you start building . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149
6.2 Tools to use when building a prototype. . . . . . . . . . . . . . . . . . . . . . . . . . 150
6.3 Creating a prototype to our sample application . . . . . . . . . . . . . . . . . . . . 151
6.3.1 Create the Web project . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 151
6.3.2 Create the menus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152
6.3.3 Update and use of the CSS file. . . . . . . . . . . . . . . . . . . . . . . . . . . . 157
6.3.4 Create the logo . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 163
6.3.5 Search properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 167
Contents vii
10.1.2 Dependencies . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
10.1.3 Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 270
10.2 Building the property catalog component . . . . . . . . . . . . . . . . . . . . . . . 271
10.2.1 Preparing the workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 272
10.2.2 Presentation layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 275
10.2.3 Controller layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 298
10.2.4 Business facade layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
10.2.5 Domain layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 299
10.2.6 Data access layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 302
10.2.7 Putting everything together . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 316
10.2.8 Testing the component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 321
Contents ix
14.2 Building the news component . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508
14.2.1 Preparing the workspace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 508
14.2.2 Presentation layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 511
14.2.3 Controller layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 522
14.2.4 Business facade layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 525
14.2.5 Domain layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 526
14.2.6 Data access layer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 529
14.2.7 Putting everything together . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 537
14.2.8 Testing the news component . . . . . . . . . . . . . . . . . . . . . . . . . . . . 540
Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 669
Contents xi
xii WebShere Application Server - Express, a development example
Notices
This information was developed for products and services offered in the U.S.A.
IBM may not offer the products, services, or features discussed in this document in other countries. Consult
your local IBM representative for information on the products and services currently available in your area.
Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM
product, program, or service may be used. Any functionally equivalent product, program, or service that
does not infringe any IBM intellectual property right may be used instead. However, it is the user's
responsibility to evaluate and verify the operation of any non-IBM product, program, or service.
IBM may have patents or pending patent applications covering subject matter described in this document.
The furnishing of this document does not give you any license to these patents. You can send license
inquiries, in writing, to:
IBM Director of Licensing, IBM Corporation, North Castle Drive Armonk, NY 10504-1785 U.S.A.
The following paragraph does not apply to the United Kingdom or any other country where such provisions
are inconsistent with local law: INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES
THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED,
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT,
MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer
of express or implied warranties in certain transactions, therefore, this statement may not apply to you.
This information could include technical inaccuracies or typographical errors. Changes are periodically made
to the information herein; these changes will be incorporated in new editions of the publication. IBM may
make improvements and/or changes in the product(s) and/or the program(s) described in this publication at
any time without notice.
Any references in this information to non-IBM Web sites are provided for convenience only and do not in any
manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the
materials for this IBM product and use of those Web sites is at your own risk.
IBM may use or distribute any of the information you supply in any way it believes appropriate without
incurring any obligation to you.
Information concerning non-IBM products was obtained from the suppliers of those products, their published
announcements or other publicly available sources. IBM has not tested those products and cannot confirm
the accuracy of performance, compatibility or any other claims related to non-IBM products. Questions on
the capabilities of non-IBM products should be addressed to the suppliers of those products.
This information contains examples of data and reports used in daily business operations. To illustrate them
as completely as possible, the examples include the names of individuals, companies, brands, and products.
All of these names are fictitious and any similarity to the names and addresses used by an actual business
enterprise is entirely coincidental.
COPYRIGHT LICENSE:
This information contains sample application programs in source language, which illustrates programming
techniques on various operating platforms. You may copy, modify, and distribute these sample programs in
any form without payment to IBM, for the purposes of developing, using, marketing or distributing application
programs conforming to the application programming interface for the operating platform for which the
sample programs are written. These examples have not been thoroughly tested under all conditions. IBM,
therefore, cannot guarantee or imply reliability, serviceability, or function of these programs. You may copy,
modify, and distribute these sample programs in any form without payment to IBM for the purposes of
developing, using, marketing, or distributing application programs conforming to IBM's application
programming interfaces.
Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the
United States, other countries, or both.
Java and all Java-based trademarks and logos are trademarks or registered trademarks of Sun
Microsystems, Inc. in the United States, other countries, or both.
Other company, product, and service names may be trademarks or service marks of others.
This IBM® Redbook is a practical guide for developing Web applications using
WebSphere Studio. We use the WebSphere Studio development environment
that is provided as part of WebSphere Application Server - Express to develop a
sample Web application targeted to the WebSphere Application Server - Express
runtime platform. We implement a sample scenario based on realistic
requirements for small and medium customers, and provide an end-to-end guide
for the development of this scenario.
Our focus is on describing a simple process that allows non technical readers to
understand and participate in the development of Web applications using
WebSphere Studio. Our target runtime environment is the Express Application
Server so we use the WebSphere Studio development environment that is part of
the WebSphere Application Server - Express installation. WebSphere
Application Server - Express, V5.0 offers a robust, easy-to-use Eclipse
technology-based development environment that allows developers to create,
build, and maintain dynamic Web sites, applications, and Web services. The
development tools offer the same development capabilities as WebSphere
Studio Site Developer with the exception that they are restricted to deployment
only to WebSphere Application Server - Express.
This means that the investment in skills acquired with WebSphere Application
Server - Express is protected when migrating to these other products. We
have deployed our redbook sample application to WebSphere Application
Server - Express V5.0.1 on Windows, and to WebSphere Application Server
V5.02 on Windows and AIX®. We have also developed and maintained the
sample application using WebSphere Studio Application Developer V5.0.1.
Bo Gong is a Senior Consultant for Lansa Inc, an IBM Business Partner. His
areas of expertise include the LANSA product family, iSeries application
development, and online business processing.
Pasi Valjus is a Senior Web Application Developer and Team Leader at Svenska
Handelsbanken based in Stockholm Sweden. He has a degree in economics and
software development. He has seven years experience in software development
including client/server and e-business technology solutions. His area of expertise
include development process, design, and development of Web applications with
Java and JavaServer Pages.
Preface xvii
Figure 0-1 The authors: Gwendolyn Gaumond, William Moore, Ilaria Gorla, Pasi Valjus, Stelios Psarras,
Mark Buensalido, Bo Gong, Doug Grove
Aaron Allsbrook
Gary Johnston
Kevin Postreich
Thomas Roche
IBM Raleigh
Maritza M. Dubec
Technical Editing
IBM ITSO San Jose
Your efforts will help increase product acceptance and customer satisfaction. As
a bonus, you'll develop a network of contacts in IBM development labs, and
increase your productivity and marketability.
Preface xix
Find out more about the residency program, browse the residency index, and
apply online at:
ibm.com/redbooks/residencies.html
Comments welcome
Your comments are important to us!
Part 1 The
development
process
This part contains an overview of the features provided by WebSphere
Application Server - Express, and describes a development process, which can
be used to develop dynamic Web applications using WebSphere Studio.
Chapter 1. Introduction
This chapter describes our objectives, our focus, and who benefits from the
contents of this redbook. We introduce the material covered by the book as well
as a description of the WebSphere Application Server - Express users who
benefit from its contents.
Chapter 1. Introduction 5
programming. The applications they develop will be focused on end-user
requirements. A group two user may also be responsible for monitoring the
availability of a Web application and its general maintenance. A group two
user is an HTML expert and uses DHTML to add functionality to Web pages.
This user has the capability to update or make changes to server-side code
(such as JavaServer Pages and Enterprise JavaBeans, and Java Servlets),
but they normally do not author server-side code.
Group three users
These users have Web application development and sever-side development
and maintenance as their primary business role. These users will be involved
with Web application development at all phases of the development process,
but they will be focused on server-side development, and will develop code
(such as JavaServer Pages Java Servlets and Enterprise JavaBeans), which
is used by other developers.
The focus of this book is the WebSphere Application Server - Express user
described in group one. This book does not assume experience and technical
background in the principles of Web application development, and associated
protocols and technologies. For the purposes of this book, readers in the target
audience will be globally referred to as non-technical.
Group two and three users will find the content of this book to be a useful tool to
introduce the WebSphere Application Server - Express platform and WebSphere
Studio and a standard of development (best practices) for Web applications
using the WebSphere Application Server - Express platform. For the purposes of
this book, readers in groups two and three will be globally described as technical.
As this book is an overview, the users in groups two and three will be interested
in further detail and technical background on many of the topics addressed. This
book will provide resources for further education and technical background on
WebSphere Application Server - Express where appropriate.
Part 2, “The sample solution” on page 133 describes a sample solution that
illustrates how to achieve areas of functionality commonly found in dynamic Web
applications. The sample solution provides a step by step explanation of how to
use WebSphere Studio to develop a Web application. This part includes the
following chapters:
Chapter 5, “Requirements” on page 135
A complete listing of the required functionality (functional requirements) of the
sample solution.
Chapter 6, “Building a prototype” on page 147
Describes a prototype and how to use it, then steps through the construction
of the sample solution prototype
Chapter 7, “Application architecture” on page 177
Chapter 1. Introduction 7
Describes the layered architecture we use to build our sample application
Chapter 8, “Design and specification” on page 189
Describes the finalized design of the sample solution
Chapter 9, “User registration and security” on page 209
Describes the construction of user registration and security functions within
the sample solution
Chapter 10, “Property catalog” on page 267
Describes the construction of the catalog and search features within the
sample solution
Chapter 11, “Interest lists” on page 327
Describes construction of the order placement feature within the sample
solution
Chapter 12, “E-mail” on page 397
Describes the construction of the e-mail response feature within the sample
solution
Chapter 13, “Administering the catalog” on page 415
Describes the construction of the product administration feature within the
sample solution
Chapter 14, “Building a news component” on page 503
Describes the construction of the feature used to enter new or featured items
within the sample solution
Chapter 15, “Reporting component” on page 547
Describes the construction of the reporting feature within the sample solution
Deployment of the sample solution and instructions for obtaining the additional
materials needed to construct the sample are covered in Appendix A, “Deploying
the redbook sample code” on page 635, and in Appendix B, “Additional material”
on page 661.
In general, all topics of this book are tailored to meet the needs of the
non-technical reader. Technical readers should use this book as a guide and use
the resources suggested in each area for more technical depth.
An initial working title of our redbook was Development for non-developers, but
we changed this to avoid generating unrealistic expectations among our
readers. Our redbook does cover material for a technical audience, as well as
for readers new to Web application development.
Chapter 1. Introduction 9
10 WebShere Application Server - Express, a development example
2
Figure 2-1 shows the relationship of the WebSphere Studio environments and
their features.
Eclipse
Java Tooling CVS Tooling Extensible Platform
Table 2-1 shows a comparison of the tools supported in the WebSphere Studio
products.
Server products
The server products, in ascending order of features, available on the iSeries
platform are:
WebSphere Application Server - Express for iSeries
All was bustle about the nearest Custom-house when the seized
vessel and goods were expected to arrive the next morning. The
magistracy in the neighbourhood were also busy, for there seemed
to be no end to the offences against the law which had arisen out of
the adventure of the preceding night.
The first steps taken were towards the discovery of the murderer
of Nicholas; and, for this purpose, application was made to
government for aid, in the shape both of police-officers and of an
offer of reward for the disclosure of the murderers. Little was hoped
from the latter proceeding, as the smugglers were known to yield
powerful protection to each other, and to be united by a bond of
honour as strongly in each other's defence as against the law. If
Nicholas's murderers were known to every dweller along the coast,
from Portsmouth to the North Foreland, there was little probability
that any one would step forward to name or lay hands on them. But,
the little that government could do,--pry about and offer bribes, was
done; and, whether or not the guilty persons might tremble or flee,
every body else laughed.
One of the gipsy band was brought up before two justices of the
peace on violent suspicion of having, after eight in the evening, and
before six in the morning, made, aided, or assisted in making, or
been present at making, a signal, by means of light, fire, flash, blaze,
signal by smoke, and so forth, through all the offences described in
the appropriate clause of that most singular statute ordained for the
prevention of smuggling. No proof could be brought, though the truth
of the charge was generally believed, and the gipsies thereby
became more popular than ever. They were dismissed, and every
body laughed.
A boy was brought up, on a charge of trespass, by a farmer, who
complained that his fenced land had been entered and trampled, and
his well and bucket made use of without leave. The boy pleaded that
he had entered for the purpose of putting out a fire which he
suspected to be intended for a signal to smugglers. The justices
referred to the statute, found that "it shall be lawful," &c., to commit
this kind of trespass, and that the boy had only done his duty. And
now, every body frowned.
A woman who had been caught standing near a tub of the spirits
which had been seized, which tub was staved, was brought up on
the charge of having staved the same. The penalty was so heavy as
to tempt to a vast deal of false swearing on her behalf, by dint of
which she escaped; and her friends and neighbours laughed again.
She was not the less glad of this issue that, being a poor person, she
would have been supported while in prison by a daily allowance
drawn from the pockets of the nation.
A crew of fishermen were summoned to show cause why they
should not, according to law, pay the treble value of a floating keg of
gin, which, having bumped against their boat at sea, they had
stretched out their hands to appropriate. There was no use in
denying the act, as it had been witnessed by two keen eyes through
unimpeachable glasses, from a headland. All that the fishermen
could do was to swear that they only meant to deliver over the spirits
to the Custom-house officers, and were prevented from doing so by
being arrested immediately on landing. The magistrates considered
this a very doubtful case; and, having before their eyes the fear of
the collective power of their smuggling neighbours, gave their
decision in favour of the fishermen; whereat the informers were
indignant, and the folks in waiting exulted.
All parties had by this time had enough of this ceremony; but the
justices agreed in assuring the Lieutenant, that if they chose to look
strictly into the proceedings of their neighbours, and to inflict all the
punishments ordained in the statute for all the modes of offence
specified therein, they might be constantly occupied from morning till
night; the gaols would be filled; there would be a distraint for
penalties in almost every cottage, and offenders would be nearly as
common as persons who stood above five feet in their shoes. They
entertained him with a sight of the entire statute, as he was not
acquainted with the whole; and all thought it perfectly consistent with
their exemplary loyalty to decide that it was truly an extraordinary
specimen of legislation. The justices could no more boast of the
achievements of their authority in putting down smuggling than the
officer of his efficiency in preventing it. All shook their heads,
complimented each other's exertions, and desponded about the
availableness of their own.
"What is to be done?" was the commonplace query which ensued.
"Why, you see," said one of the justices, "the prohibiting a
commodity does not take away the taste for it; and if you impose a
high duty, you only excite people to evade it, and to calculate the
average rate of the risk of detection. That being done, there will
always be abundance of speculators found to make the venture, and
no lack of customers to bid them God speed."
"Then there are two ways of demolishing the practice,--lowering
the duties, so as to remove the temptation to smuggling; and
increasing the difficulty of carrying on a contraband trade."
"I should say there is but one," replied the first speaker.
"Difficulties have been multiplied till we who have to administer the
law groan under them, and smuggling is still on the increase."
"What is government about all the time?" asked the Lieutenant.
"They must know this, and yet they let their own power be mocked,
and the interests of our manufacturers and commercial men be
sacrificed."
"Of our manufacturers, but not necessarily of all our commercial
men. Contraband trade is a fine thing for certain shopkeepers; and
you might hear some curious stories below there," (nodding towards
the Custom-house,) "about certain methods of obtaining drawbacks,
and then re-landing the goods by the help of our night-working
neighbours. However, government is getting a glimpse of the true
state of the case, as we shall soon see."
"Because," observed the other magistrate, "government is
beginning to look to the right quarter for information. It is nonsense to
consult collectors of the revenue, and persons in their interest and of
their way of thinking, about the best method of rendering taxes
effectual. The only way is to contemplate the interests of the tax
payers. This done, it is easily seen that there is not much wisdom in
a system, the enforcement alone of which costs the country many
hundred thousand pounds a year."
"And which is not enforced, after all, and never can be. No, no; the
government sees now that the only way is to lower the duties down
to the point which makes contraband trading a speculation not worth
attempting."
"What makes you suppose that government views the matter in
this light?"
"It is said, and confidently believed in London, that government
has taken into consideration this petition from the principal silk-
manufacturers in and about London."
The Lieutenant read the petition in the newspaper, of recent date,
now handed to him.
"Hum. 'This important manufacture, though recently considerably
extended,'--aye, so it ought to be, from the increasing number of
wearers of silk,--'is still depressed below its natural level'--they are
tired of Spitalfields subscriptions, I suppose, and of living among
starving weavers, who throw the blame of their starvation on their
masters;--'by laws which prevent it from attaining that degree of
prosperity which, under more favourable circumstances, it would
acquire.'--Well! what thinks the House of this petition?"
"That will be seen when government speaks upon it. It is thought
that the prohibition of foreign silks will be removed, and a moderate
duty substituted. If so, it will be an important experiment."
"I rather think," observed the other magistrate, "that the fault will
soon be found to be neither in the undue mildness of the law, nor in
our way of administering it,--of both which the customs and excise
officers are for ever complaining. I believe my friend here and I shall
have little less reason to bless the change than these petitioning
manufacturers."
"There will be enough left for me to do," observed the Lieutenant,
"if, as I suppose, they will leave as they are the duties on articles not
produced at home. Many a cargo of gin and tobacco will yet be
landed in my day. Meanwhile, I must go and see the unpacking at
the Custom-house. I hope I shall not be tempted to smuggle within
those very walls, on my wife's account."
When the officer arrived at the Custom-house, he found the
Collector and Comptroller invested with all the dignity of active office,
and the members of the Coast Guard who were there to claim their
share of booty, watching with eagerness for the unpacking of a large
store of that beloved weed which was wont to "cheer but not
inebriate" them on their watch. A few inquisitive neighbours were
peeping in from window and door, and Mr. Pim, admitted through
favour, from his son being the Collector's clerk, paced up and down,
his countenance exhibiting a strange alternation of mirth and
vexation. He could not help enjoying the fun of people eluding, and
baffling, and thwarting one another; such fun being one chief
inducement to him to connect himself as he had done with
contraband traders; but it was a serious vexation to see some of his
property,--goods on whose safe arrival he had staked the earnings of
his irksome school-hours,--thus about to fall into the hands of those
who had paid no such dolorous price for them.
Somebody wondered that, as the smugglers had taken time to
carry away so considerable a portion of their cargo, a large package
of tobacco should have been left behind; tobacco being an
exceedingly valuable article of contraband trade, from the difference
between its original cost and its price when charged with the duty. If
smugglers paid threepence a pound for their article, and sold it at
half-a-crown, it must repay their risks better than most articles which
they could import. One of the guard believed he had seen numerous
packages of tobacco on the people's shoulders, as they passed to
the carts, and supposed that the quantity before them formed a very
small portion of what had been landed.
"Most likely," observed the Collector. "There is more tobacco
landed than there is of any thing else, except brandy and geneva. It
is high time government was bestirring itself to put down the
smuggling of tobacco. Do you know, sir," (to the Lieutenant,) "these
fellows supply a fourth part of the tobacco that is consumed in
England?"
"That is nothing to what they do in Ireland," observed Brady.
"There were seventy vessels in one year landing tobacco between
Waterford and Londonderry."
"Yes; the Irish are incorrigible," replied the Collector; "they
smuggle three-fourths of the tobacco they use."
The Lieutenant doubted whether they were incorrigible. Neither
the Irish, nor any body else, would think of smuggling unless they
were tempted to it. If the duty, now three shillings per pound, were
reduced to one shilling, smuggling tobacco would not answer; the
sinning three-fourths would get their tobacco honestly, and
government would be the gainer. The same advantage would arise
in England from the reduction of the duty; as, in addition to the
practice of smuggling being superseded, the consumption of the
article would materially increase, as is always the case on the
reduction of a tax. With every augmentation of the duty from eight-
pence per pound to three shillings, there had been a failure of
consumption at the same time with an increase of contraband trade;
so that the revenue had suffered doubly, and to an extent far beyond
its gains from the heightening of the duty.
"What have we got here?" cried Pim, as a gay-coloured article was
drawn out from among the packages.
"Flags! Aye; these were clever fellows, and knew their business,
you see. Here are pretty imitations of navy flags, and a fine variety.
British, Dutch, French! They knew what they were about,--those
fellows."
"So do you, it seems, Mr. Pim," observed the Collector. "You are
as wonderfully learned in flags as if you had taken a few trips to sea
yourself."
"I have lived on this coast for many a year, and seen most of the
flags that wave on these seas," replied Pim. "But since these flags
are but poor booty, it is a pity your men cannot catch those that
hoisted them, and so get a share of the fine."
"Suppose you put them on the right scent, Mr. Pim. I fancy you
could, if you chose."
Mr. Pim disclaimed, with all the gravity which his son's presence
could impose. A parcel of bandanas next appeared, and as the
familiar red spotted with white appeared, a smile went round the
circle of those who anticipated a share of the seizure.
"Ho, ho! I suspect I know who these belong to," observed the
Collector. "There is a gentleman now not far off on this coast who
could tell us all about them, I rather think. He has been sent for from
London, under suspicion of certain tricks about the drawback on the
exportation of silks. His shop is supplied very prettily by our
smugglers, and his connexion with them is supposed to be the
inducement to him to make large purchases at the India sales. I have
no doubt he is one of those who buy bandanas at four shillings a
piece, and sell them at eight shillings, when they have had a trip to
Ostend or Guernsey. I have a good mind to send for him."
"This is the last sort of commodities I should think it can be
pleasant to you Custom-house folks to declare forfeited," observed
Pim. "Your consciences must twinge you a little here, I should think. I
don't doubt your tobacco and your brandy being duty-paid, and all
proper; but when paying duty will not do, you will offend, just like
those who are not government servants, rather than go without what
you have a mind to. I'll lay any wager now----"
"Hold your impertinent tongue, sir," cried the Collector.
Mr. Pim obeyed, taking leave to use his hands instead. He
stepped behind the Collector, and quietly picked his pocket of a
bandana: he did the same to the Comptroller; and afterwards to all
the rest, though the land-waiter whisked away his coat-tail, and the
tide-waiter got into a corner. The only one who escaped was the
clerk (Pim’s own son), and he only because his having one round his
neck made the process unnecessary. A goodly display of bandanas,-
-real Indian,--now graced the counter, and everybody joined in Pim's
hearty laugh.
"Now," said he, "if you summon Breme on the suspicion of this
property being his----"
"So you know who the gentleman was that I was speaking of,"
cried the Collector. "Very well. Perhaps you can tell us a little news of
this next package."
And forthwith was opened to view a beautiful assortment of figured
silks, of various colours, but all of one pattern. Mr. Pim gravely shook
his head over them.
"If you know nothing of those, I do," said Brady, taking out his
tobacco-box, and producing therefrom the snip of silk which had
been extracted from Elizabeth's glove. "'Tis the same article, you
see; and the Lieutenant here declares 'tis English."
"And so it is, and so are these," declared the Collector. "The
French would be ashamed of such a fabric as this, at the price
marked, though they might own the figure; which must be imitated
from theirs, I fancy. We had better send for Mr. Breme, and let the
other Custom-house know of this seizure. I suspect it will throw
some more light on the tricks about the drawback."
Mr. Breme was found to be nearer at hand than had been
supposed. Having failed in his speculation, through two unfortunate
seizures of contraband cargoes, he had cut but a poor figure at the
larger Custom-house, where he had just been examined, and found
it necessary to consult with his Brighton brother as to the means of
getting the threatened fine mitigated, or of paying it, if no mercy
could be obtained. He was proceeding along the coast to Brighton,
when Pim, who was aware of his movements, met him, and told him
of the adventures which had taken place at Beachy Head.
What was to be done? Should he slip past to Brighton quietly, at
the risk of being brought back in a rather disagreeable way, or
should he make his appearance at once, and brave the
circumstances, before more evidence should be gathered against
him from distant quarters? The latter measure was decided upon;
and Breme, after changing his directions to the post-boy, leaned
back in his chaise to ruminate, in anything but a merry mood, on the
losses which he had sustained, was sustaining, and must expect still
further to sustain.
Breme had lately become a merchant in a small way, as well as a
shopkeeper. He had followed the example of many of his brethren in
trade, in venturing upon a proceeding of some risk, in hopes that
large profits would cover the loss of the occasional failures which he
had to expect. He had employed his Spitalfields neighbour to
manufacture a fabric in imitation of French silk, and had exported the
produce as English, receiving at the Custom-house the drawback
granted to such exportation. This drawback was the remission, or
paying back, of the duties on the article to be exported; such
remission being necessary to enable the exporter to sell his
commodity in the foreign market on equal terms with the foreign
manufacturers, who were less burdened with taxes. Breme claimed
and received this drawback, he and his agents swearing, in due
form, according to the statute, that the goods were really for sale
abroad, and should not be relanded. The oath was considered
merely as a necessary form; and Breme had no notion of selling his
goods in a foreign market at a lower price than would be given for
them in England, under the supposition that they were French. Back
they came, therefore; and the government, which had paid the
drawback, besides having thereby made a very pretty present to Mr.
Breme, saw an addition made to the stock of the already
overstocked market at home, while the weavers of silk were starving,
and it was charitably contributing to frequent subscriptions for their
relief. Mr. Breme was now, however, a loser in his turn, his beautiful
goods being clutched by the strong hand of the law. In addition to
this trouble, he was suffering under the prospect of a speedy end
being put to this kind of speculation.
He could not decide what line of defence to take till he reached the
Custom-house, and heard the nature and amount of the evidence
that there might be against him. When he was told that the case was
to be followed up very diligently, and exposed as a warning; that the
silks were known to be of the same kind as those for which he had
had to answer in another place; and that the manufacturer and
weavers would be produced to swear to the origin of the whole,--he
offered to make oath that he had sold the goods abroad, and that
their being afterwards smuggled back again was the act of his
customers, and not his own. The Collector congratulated him that,
this being the case, he was not subjected to the loss which some of
his friends had regretted on his account. It was, indeed, a much
pleasanter thing to have sold the goods and pocketed the money
than to see such a beautiful lot of goods, prepared at so much cost,
and with so much labour and ingenuity, now lying a forfeit to the
offended British law. With a bitter sweet smile, Mr. Breme bowed in
answer to this congratulation, and changed the subject. He observed
that days of comparative leisure were apparently at hand for all the
gentlemen he saw around him. If government should carry into other
departments the changes it was about to make in the silk trade,
there would be an end of many of the little affairs with which the time
of the Custom-house officers was now so fully and disagreeably
occupied.
What did he mean? Did he bring any new information?
Merely that government was about to remove the prohibition on
the importation of foreign silks, and to substitute an ad valorem duty
of 30 per cent.
"Bless my soul, sir! what an extraordinary thing!" cried the
Collector. "You do not mean that you are sure of the fact, sir?"
Mr. Breme had it from the best authority.
"Why 'extraordinary?'" asked the Lieutenant. "The nature of our
business this morning is proof enough that some change is
necessary, is it not?"
"To be sure," replied Breme; "but the change should be all the
other way. Do you know, sir, the market is deluged already with silk
goods from the late slight mourning, and from a change of fashion
since? What are we to do, sir, when the French pour in a flood of
their manufactures upon us?"
"Our market is glutted because we can find no vent for our
produce; and I do not see how the matter could be mended by
increasing the inducements of smugglers to supply us, while our
weavers are starving in the next street. If the French silks are, on the
average, 25 per cent. cheaper than ours, a duty of 30 per cent. will
leave our manufacturers a fair chance in the competition with
foreigners, and will throw the trade of the smugglers into their hands.
My only doubt is, whether the duty is not too high,--whether there is
not still some scope left to smuggling enterprize."
"Your countrymen are much obliged to you, I am sure, sir," said
Breme, tartly. "I think government should know that some of its
servants are ill-disposed to their duty."
The Lieutenant dared the shopkeeper to say this again, in the
midst of the witnesses of what his conduct had been on the
preceding night. Breme meant only,----and so forth.
Anxious and perplexed were all the faces now, except the
Lieutenant's own. His men had only a vague idea that something
was to happen to take away their occupation, and to do a great
mischief. Their officer bade them cheer up, and told them that it was
only to the article of silk that the reported regulations would relate.
"There is no knowing that," sagely observed the Collector. "When
they begin with such innovations, there is no telling where they will
leave off. With such a fancy once in their heads, Ministers (though
God forbid I should say any evil of them!) will not stop till they have
ruined the revenue, and laid waste the country under the curse of an
entirely free trade."
"I dare say they will be wise enough to retain duties which all
classes allow to be just; and the levying of them will afford you quite
sufficient occupation, Mr. Collector, if our trade increases, as it is
likely to do under such a system," replied the Lieutenant. "This little
custom-house may no longer be wanted as a store-place for
contraband goods; but there will be all the more to do in the large
ports; and there, sir, you may find an honourable and appropriate
place."
Neither the Collector nor any of his coadjutors, however, could be
consoled under the dire prospect of the total ruin of the revenue,
which was the result they chose to anticipate from the measures
understood to be now in contemplation. Their only ground of hope
was, that the British manufacturers would rise in a body to
remonstrate against the sacrifice of their interests. This, however,
considering that the most eminent of the body had already petitioned
for the opening of the trade, offered a very slender promise of
consolation.
Pim had early slipped away to spread the news of the
contemplated "ruin of the coast." The tidings spread from mouth to
mouth, till they filled every cottage, and reached even the recesses
where the gipsies made a home. Draper and Faa came forth over
the down to hear what the schoolmaster had to tell, and returned
thoughtful to the tent where Mrs. Draper was looking out for them.
"Then the winters will pass over us in a ceiled house," said she,
when she had heard the news. "We must join our tribe in London
from the first autumn fog till the last spring frost."
"You and yours," said one of the men, who was weaving the rush
bottom of an old chair. "We men may work in the free air, though
there will be stones instead of turf under our feet. Many chairs to
mend in London."
"But no night-play to fill the pocket and sharpen the spirits," old
Faa observed. There was nothing in cities that he liked so well as his
task of the last night,--to stand on the ridge as a watch upon the
sentinel, and stoop, or hold himself erect, according as the sentinel
turned his back or his face, that the lads in the furze might know
when to creep forward on all-fours, and when to lie still. It was far
pleasanter to see them all collected safe in the shadow of Shooter's
Welcome to our website – the ideal destination for book lovers and
knowledge seekers. With a mission to inspire endlessly, we offer a
vast collection of books, ranging from classic literary works to
specialized publications, self-development books, and children's
literature. Each book is a new journey of discovery, expanding
knowledge and enriching the soul of the reade
Our website is not just a platform for buying books, but a bridge
connecting readers to the timeless values of culture and wisdom. With
an elegant, user-friendly interface and an intelligent search system,
we are committed to providing a quick and convenient shopping
experience. Additionally, our special promotions and home delivery
services ensure that you save time and fully enjoy the joy of reading.
ebookfinal.com