Java EE 5 Development with NetBeans 6 1st Edition Heffelfingerpdf download
Java EE 5 Development with NetBeans 6 1st Edition Heffelfingerpdf download
or textbooks at https://ebookultra.com
https://ebookultra.com/download/java-ee-5-development-with-
netbeans-6-1st-edition-heffelfinger/
https://ebookultra.com/download/java-ee-5-development-using-glassfish-
application-server-1st-ed-edition-david-heffelfinger/
https://ebookultra.com/download/big-java-compatible-with-
java-5-6-and-7-4th-edition-cay-s-horstmann/
https://ebookultra.com/download/the-java-ee-6-tutorial-basic-
concepts-4th-edition-eric-jendrock/
https://ebookultra.com/download/java-ee-7-essentials-1st-edition-arun-
gupta/
Java EE 7 for Beginners 1st Edition Sharanam Shah
https://ebookultra.com/download/java-ee-7-for-beginners-1st-edition-
sharanam-shah/
https://ebookultra.com/download/pro-netbeans-ide-6-rich-client-
platform-edition-adam-myatt/
https://ebookultra.com/download/starting-out-with-java-early-
objects-5-e-5th-edition-tony-gaddis/
https://ebookultra.com/download/agile-web-development-with-
rails-5-1st-edition-sam-ruby/
https://ebookultra.com/download/jboss-r-seam-simplicity-and-power-
beyond-java-tm-ee-1st-edition-michael-juntao-yuan/
Java EE 5 Development with NetBeans 6 1st Edition
Heffelfinger Digital Instant Download
Author(s): Heffelfinger, David
ISBN(s): 9781847195463, 1847195466
Edition: 1
File Details: PDF, 23.45 MB
Year: 2008
Language: english
Java EE 5
Development with NetBeans 6
David R. Heffelfinger
BIRMINGHAM - MUMBAI
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
Java EE 5 Development with NetBeans 6
All rights reserved. No part of this book may be reproduced, stored in a retrieval
system, or transmitted in any form or by any means, without the prior written
permission of the publisher, except in the case of brief quotations embedded in
critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of
the information presented. However, the information contained in this book is sold
without warranty, either express or implied. Neither the author, Packt Publishing,
nor its dealers or distributors will be held liable for any damages caused or alleged to
be caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all the
companies and products mentioned in this book by the appropriate use of capitals.
However, Packt Publishing cannot guarantee the accuracy of this information.
ISBN 978-1-847195-46-3
www.packtpub.com
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
Credits
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
About the Author
I would also like to thank the technical reviewers, David Salter and
Mario Pérez Madueño; your feedback certainly was essential, greatly
improving the quality of the material presented in the book.
Last, and most certainly not least, I would like to thank my wife and
daughter for enduring the long hours I spent working on the book,
unable to spend time with my family.
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
About the Reviewers
David Salter is an enterprise software architect who has been developing software
professionally since 1991. His relationship with Java goes right back to the beginning,
using Java 1.0 for writing desktop applications and applets for interactive web
sites. David has been developing Enterprise Java Applications using both the J2EE
standards and open source solutions for the last five years. David runs the Java
community web site, Develop In Java, a web site for all levels of Java developers.
David co-authored the book Building SOA-Based Composite Applications Using
NetBeans IDE 6.
Mario Pérez Madueño started developing applications for Zeus Sistemas in 1995
using Borland C++ Builder. He graduated in computer science in 2006 and is still
studying to obtain a Master's degree in the EHEA, although what he actually would
like is the Java programming with passion graduate.
Mario also works most recently as software engineer for Altra Software, helping to
develop Java desktop and EE5 applications.
As technical reviewer, Mario also worked for Packt Publishing on the title Building
SOA-Based Composite Applications Using NetBeans IDE 6.
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
Table of Contents
Preface 1
Chapter 1: Getting Started with NetBeans 7
Introduction 7
Downloading NetBeans 9
Installing NetBeans 12
Microsoft Windows 12
Mac OS X 13
Linux and Solaris 13
Other Platforms 13
Installation Procedure 14
Starting NetBeans for the First Time 19
Configuring NetBeans for Java EE Development 20
Integrating NetBeans with a Third Party Application Server 21
Integrating NetBeans with a Third Party RDBMS 24
Adding a JDBC Driver to NetBeans 24
Connecting to a Third Party RDBMS 26
Deploying Our First Application 28
NetBeans Tips for Effective Development 33
Code Completion 33
Code Templates 37
Keyboard Shortcuts 38
Understanding NetBeans Visual Cues 42
Summary 44
Chapter 2: Developing Web Applications with Servlets
and JSPs 45
Creating Our First Web Application 45
Modifying NetBeans' Generated Code 52
Developing the Input Page 52
Developing the Output Page 61
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
Table of Contents
Servlet Development 68
Adding a Servlet to Our Application 68
Securing Web Applications 77
Implementing Form Based Authentication 79
Implementing the Login Page 79
Implementing a Login Error Page 81
Configuring Our Application for Form-Based Authentication 82
JSP Fragments 90
Creating a JSP Fragment in NetBeans 91
Monitoring Web Applications with NetBeans HTTP Monitor 93
Summary 100
Chapter 3: Enhancing JSP Functionality with JSTL
and Custom Tags 101
Core JSTL Tags 102
Conditionally Displaying Part of a Page with the <c:if> Tag 102
Displaying Mutually Exclusive Markup with the <c:choose> Tag 105
Iterating through Arrays or Collections with the <c:forEach> Tag 109
SQL JSTL Tags 112
Retrieving Database Data with the <sql:query> Tag 115
Modifying Database Data with the <sql:update> Tag 119
Inserting Database Data 119
Updating Database Data 123
Deleting Database Data 125
Closing Remarks about JSTL 128
Custom JSP Tags 128
Summary 134
Chapter 4: Developing Web Applications using
JavaServer Faces 135
Developing Our first JSF Application 136
Creating a New JSF Project 137
Modifying Our JSP to Capture User Data 141
Creating Our Managed Bean 147
Implementing Navigation 152
Executing Our Application 156
JSF Validation 158
Displaying Tabular Data 162
Summary 171
Chapter 5: Interacting with Databases through
the Java Persistence API 173
Creating Our First JPA Entity 174
Adding Persistent Fields to Our Entity 182
[ ii ]
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
Table of Contents
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
Table of Contents
[ iv ]
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
Preface
In 1999, Sun Microsystems split the Java language into three editions, J2SE
(Java 2, Standard Edition), J2ME (Java 2, Micro Edition), and J2EE (Java 2, Enterprise
Edition). The reason for the split was that the Java language was covering a lot of
territory, and not all developers used all the features of the language. To make the
language more manageable, the decision was made to split the language into the
three editions.
Since then, the different editions of the language have been renamed to Java SE,
Java ME, and Java EE. The reason for renaming the different editions was that the
Java platform obtained brand recognition among consumers, and Sun Microsystems
wanted to make it obvious that Java SE, ME, and EE were recognized as part of the
Java platform.
All three editions share the core of the Java language, but additional APIs are
included in each edition that are not available in the others. In this book we will
cover Java EE, and how to use NetBeans to more effectively write applications
conforming to the Java EE specification.
Chapter 2 covers how NetBeans aids in the development of web applications using
the servlet API and JavaServer Pages.
Chapter 3 shows how NetBeans can help us create maintainable web applications by
taking advantage of JavaServer Pages Standard Tag Library (JSTL), and it also covers
how to write our own custom JSP tags.
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
Preface
Chapter 4 explains how NetBeans can help us easily develop web applications that
take advantage of the JavaServer Faces framework.
Chapter 6 covers the NetBeans visual web JSF designer, which allows us to visually
build JSF applications by dragging and dropping components into our JSF pages.
Chapter 9 explains how NetBeans can help us easily develop web services based on
the Java API for XML Web Services (JAX-WS) API.
Appendix B covers the NetBeans profiler, explaining how it can be used to analyze
performance issues in our applications.
[]
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
Preface
Conventions
In this book, you will find a number of styles of text that distinguish between
different kinds of information. Here are some examples of these styles, and an
explanation of their meaning.
Code words in text are shown as follows: "Earlier in this chapter we discussed how
the required attribute for JSF input fields allows us to easily make input
fields mandatory."
A block of code will be set as follows:
<navigation-rule>
<from-view-id>/welcomeJSF.jsp</from-view-id>
<navigation-case>
<from-outcome>submit</from-outcome>
<to-view-id>/confirmation.jsp</to-view-id>
</navigation-case>
</navigation-rule>
When we wish to draw your attention to a particular part of a code block, the
relevant lines or items will be made bold:
<h:inputText id="email" label="Email Address"
required="true" value="#{RegistrationBean.email}">
<f:validator validatorId="emailValidator"/>
</h:inputText>
New terms and important words are introduced in a bold-type font. Words that
you see on the screen, in menus or dialog boxes for example, appear in our text
like this: " At this point JSF navigation "kicks-in", and we are taken to the
Confirmation Page."
[]
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
Preface
Reader Feedback
Feedback from our readers is always welcome. Let us know what you think about
this book, what you liked or may have disliked. Reader feedback is important for us
to develop titles that you really get the most out of.
If there is a book that you need and would like to see us publish, please
send us a note in the SUGGEST A TITLE form on www.packtpub.com or
email suggest@packtpub.com.
If there is a topic that you have expertise in and you are interested in either writing
or contributing to a book, see our author guide on www.packtpub.com/authors.
Customer Support
Now that you are the proud owner of a Packt book, we have a number of things to
help you to get the most from your purchase.
Errata
Although we have taken every care to ensure the accuracy of our contents, mistakes
do happen. If you find a mistake in one of our books—maybe a mistake in text or
code—we would be grateful if you would report this to us. By doing this you can
save other readers from frustration, and help to improve subsequent versions of
this book. If you find any errata, report them by visiting http://www.packtpub.
com/support, selecting your book, clicking on the let us know link, and entering
the details of your errata. Once your errata are verified, your submission will be
accepted and the errata added to the list of existing errata. The existing errata can be
viewed by selecting your title from http://www.packtpub.com/support.
[]
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
Preface
Piracy
Piracy of copyright material on the Internet is an ongoing problem across all media.
At Packt, we take the protection of our copyright and licenses very seriously. If
you come across any illegal copies of our works in any form on the Internet, please
provide the location address or website name immediately so we can pursue
a remedy.
We appreciate your help in protecting our authors, and our ability to bring you
valuable content.
Questions
You can contact us at questions@packtpub.com if you are having a problem with
some aspect of the book, and we will do our best to address it.
[]
This material is copyright and is licensed for the sole use by Henry Vanyan on 26th July 2009
7406 Valaho Dr, , Tujunga, , 91042
Exploring the Variety of Random
Documents with Different Content
Christian Materialism making small headway as formulated by him, though
it was followed up by the Unitarian Priestley. The reaction against the
Revolution, indeed, seems to have evicted everything in the nature of active
philosophic thought from the universities in the first decade of the
nineteenth century; at Oxford it was taught in a merely traditionary fashion,
in lamentable contrast to what was going on in Germany;317 and in
Scotland in the ‘thirties things had fallen to a similar level.318 It was over
practical issues that new thought germinated in England. The proof of the
change wrought in the direction of native thought is seen in the
personalities of the men who, in the teeth of the reaction, applied
rationalistic method to ethics and psychology. Bentham and James Mill
were in their kindred fields among the most convinced and active
freethinkers of their day, the former attacking both clericalism and
orthodoxy;319 while the latter, no less pronounced in his private opinions,
more cautiously built up a rigorously naturalistic psychology in his Analysis
of the Human Mind (1829). Bentham’s utilitarianism was so essentially
anti-Christian that he could hardly have been more disliked by discerning
theists if he had avowed his share in the authorship of the atheistic Analysis
of the Influence of Natural Religion, which, elaborated from his manuscript
by no less a thinker than George Grote, was published in 1822.320
Pseudonymous as that essay is, it seeks to guard against the risk of
prosecution by the elaborate stipulation that what it discusses is always the
influence of natural religion on life, revealed religion being another matter.
But this is of course the merest stratagem, the whole drift of the book being
a criticism of the effects of the current religion on contemporary society. It
greatly influenced J. S. Mill, whose essay on The Utility of Religion echoes
its beginning; and if it had been a little less drab in style it might have
influenced many more.
It was said of Hamilton that, “having scratched his eyes out in the bush of
reason, he scratched them in again in the bush of faith”; and when that
could obviously be said also of his reverend pupil, the philosophic tide was
clearly on the turn. Within two years of the delivery of Mansel’s lectures his
and Hamilton’s philosophic positions were being confidently employed as
an open and avowed basis for the naturalistic First Principles (1860–62) of
Herbert Spencer, wherein, with an unfortunate laxity of metaphysic on the
author’s own part, and a no less unfortunate lack of consistency as regards
the criticism of religious and anti-religious positions,326 the new cosmic
conceptions are unified in a masterly conception of evolution as a universal
law. This service, the rendering of which was quite beyond the capacity of
the multitude of Spencer’s metaphysical critics, marks him as one of the
great influences of his age. Strictly, the book is a “System of Nature” rather
than a philosophy in the sense of a study of the grounds and limitations of
knowledge; that is to say, it is on the former ground alone that it is coherent
and original. But its very imperfections on the other side have probably
promoted its reception among minds already shaken in theology by the
progress of concrete science; while at the same time such imperfections
give a hostile foothold to the revived forms of theism. In any case, the
“agnostic” foundation supplied by the despairing dialectic of Hamilton and
Mansel has always constituted the most effective part of the Spencerian
case.
11. The effect of the ethical pressure of the deistic attack on the intelligence
of educated Christians was fully seen even within the Anglican Church
before the middle of the century. The unstable Coleridge, who had gone
round the whole compass of opinion327 when he began to wield an
influence over the more sensitive of the younger Churchmen, was strenuous
in a formal affirmation of the doctrine of the Trinity, but no less anxious to
modify the doctrine of Atonement on which the conception of the Trinity
was historically founded. In the hands of Maurice the doctrine of sacrifice
became one of example to the end of subjective regeneration of the sinner.
This view, which was developed by John the Scot—perhaps from hints in
Origen328—and again by Bernardino Ochino,329 is specially associated
with the teaching of Coleridge; but it was quite independently held in
England before him by the Anglican Dr. Parr (1747–1825), who appears to
have been heterodox upon most points in the orthodox creed,330 and who,
like Servetus and Coleridge and Hegel, held by a modal as against a
“personal” Trinity. The advance in ethical sensitiveness which had latterly
marked English thought, and which may perhaps be traced in equal degrees
to the influence of Shelley and to that of Bentham, counted for much in this
shifting of Christian ground. The doctrine of salvation by faith was by many
felt to be morally indefensible. Such Unitarian accommodations presumably
reconciled to Christianity and the Church many who would otherwise have
abandoned them; and the only orthodox rebuttal seems to have been the old
and dangerous resort to the Butlerian argument, to the effect that the God of
Nature shows no such benign fatherliness as the anti-sacrificial school
ascribe to him.331 This could only serve to emphasize the moral bankruptcy
of Butler’s philosophy, to which Mansel, in an astonishing passage of his
Bampton Lectures,332 had shown himself incredibly blind.
So universal is sociological like other law that we find in Japan, among some
freethinkers, the same disposition as among some in Europe to decide that
religion is necessary for the people. Professor Chamberlain (p. 352) cites
Fukuzawa, “Japan’s most representative thinker and educationist,” as openly
declaring that “It goes without saying that the maintenance of peace and security
in society requires a religion. For this purpose any religion will do. I lack a
religious nature, and have never believed in any religion. I am thus open to the
charge that I am advising others to be religious while I am not so. Yet my
conscience does not permit me to clothe myself with religion when I have it not at
heart.... Of religions there are several kinds—Buddhism, Christianity, and what
not. From my standpoint there is no more difference between those than between
green tea and black.... See that the stock is well selected and the prices cheap....”
(Japan Herald, September 9, 1897). To this view, however, Fukuzawa did not
finally adhere. The Rev. Isaac Dooman, a missionary in Japan who knew him
well, testifies to a change that was taking place in his views in later life regarding
the value of religion. In an unpublished letter to Mr. Robert Young, of Kobe, Mr.
Dooman says that on one occasion, when conversing on the subject of
Christianity, Fukuzawa remarked: “There was a time when I advocated its
adoption as a means to elevate our lower classes; but, after finding out that all
Christian countries have their own lower classes just as bad, if not worse than
ours, I changed my mind.” Further reflection, marked by equal candour, may lead
the pupils of Fukuzawa to see that nations cannot be led to adore any form of
“tea” by the mere assurance of its indispensableness from leaders who confess
they never take any. His view is doubtless shared by those priests concerning
whom “it may be questioned whether in their fundamental beliefs the more
scholarly of the Shinshiû priests differ very widely from the materialistic
agnostics of Europe” (Dixon, p. 516). In this state of things the Christian thinks he
sees his special opportunity. Professor Dixon writes (p. 518), in the manner of the
missionary, that “decaying shrines and broken gods are to be seen everywhere.
Not only is there indifference, but there is a rapidly-growing skepticism.... The
masses too are becoming affected by it.... Shintôism and ... Buddhism are
doomed. What is to take their place?... It must be either Christianity or Atheism.
We have the brightest hopes that the former will triumph in the near future....”
The American missionary before cited, Mr. Gulick, argues alternately that the
educated Japanese are religious and that they are not, meaning that they have
“religious instincts,” while rejecting current creeds. The so-called religious
instinct is in fact simply the spirit of moral and intellectual seriousness. Mr.
Gulick’s summing-up, as distinct from his theory and forecast, is as follows: “For
about three hundred years the intelligence of the nation has been dominated by
Confucian thought, which rejects active belief in supra-human beings.... The
tendency of all persons trained in Confucian classics was towards thoroughgoing
skepticism as to divine beings and their relation to this world. For this reason,
beyond doubt, has Western agnosticism found so easy an entrance into Japan....
Complete indifference to religion is characteristic of the educated classes of to-
day. Japanese and foreigners, Christians and non-Christians alike, unite in this
opinion. The impression usually conveyed by this statement, however, is that
agnosticism is a new thing in Japan. In point of fact, the old agnosticism is merely
reinforced by ... the agnosticism of the West” (The Evolution of the Japanese, pp.
286–87). This may be taken as broadly accurate. Cp. the author’s paper on
“Freethought in Japan” in the Agnostic Annual for 1906. Professor E. H. Parker
notes (China and Religion, 1905, p. 263) that “the Japanese in translating Western
books are beginning, to the dismay of our missionaries, to leave out all the
Christianity that is in them.”
But a very grave danger to the intellectual and moral life of Japan has been
of late set up by a new application of Shintôism, on the lines of the
emperor-worship of ancient Rome. A recent pamphlet by Professor
Chamberlain, entitled The Invention of a New Religion (R. P. A.; 1912),
incidentally shows that the Japanese temperament is so far from being
“essentially” devoid of devotion as to be capable of building up a fresh
cultus to order. It appears that since the so-called Restoration of 1868, when
the Imperial House, after more than two centuries of seclusion in Kyoto,
was brought from its retirement and the Emperor publicly installed as ruler
by right of his divine origin, the sentiment of religious devotion to the
Imperial House has been steadily inculcated, reaching its height during the
Russo-Japanese War, when the messages of victorious generals and
admirals piously ascribed their successes over the enemy to the “virtues of
the Imperial Ancestors.” In every school throughout the Empire there hangs
a portrait of the emperor, which is regarded and treated as is a sacred image
in Russia and in Catholic countries. The curators of schools have been
known on occasion of fire and earthquake to save the imperial portrait
before wife or child; and their action has elicited popular acclamation. On
the imperial birthday teachers and pupils assemble, and passing singly
before the portrait, bow in solemn adoration. The divine origin of the
Imperial House and the grossly mythical history of the early emperors are
taught as articles of faith in Japanese schools precisely as the cosmogony of
Genesis has been taught for ages in the schools of Christendom. Some years
ago a professor who exposed the absurdity of the chronology upon which
the religion is based was removed from his post, and a teacher who declined
to bow before a casket containing an imperial rescript was dismissed. His
life was, in fact, for some time in danger from the fury of the populace. So
dominant has Mikado-worship become that some Japanese Christian
pastors have endeavoured to reconcile it with Christianity, and to be
Mikado-worshippers and Christ-worshippers at the same time.341 All creeds
are nominally tolerated in Japan, but avowed heresy as to the divine origin
of the Imperial House is a bar to public employment, and exposes the
heretic to suspicion of treason. The new religion, which is merely old
Shintôism revised, has been invented as a political expedient, and may
possibly not long survive the decease of Mutsu Hito, the late emperor, who
continued throughout his reign to live in comparative seclusion, and has
been succeeded by a young prince educated on European lines. But the cult
has obtained a strong hold upon the people; and by reason of social pressure
receives the conventional support of educated men exactly as Christianity
does in England, America, Germany, and Russia.
Thus there is not “plain sailing” for freethought in Japan. In such a political
atmosphere neither moral nor scientific thought has a good prognosis; and if
it be not changed for the better much of the Japanese advance may be lost.
Rationalism on any large scale is always a product of culture; and culture
for the mass of the people of Japan has only recently begun. Down till the
middle of the nineteenth century nothing more than sporadic freethought
existed.342 Some famous captains were irreverent as to the omens; and in a
seventeenth-century manual of the principles of government, ascribed to the
great founder of modern feudalism, Iyéyasu, the sacrifices of vassals at the
graves of their lords are denounced, and Confucius is even cited as
ridiculing the burial of effigies in substitution.343 But, as elsewhere under
similar conditions, such displays of originality were confined to the ruling
caste.344 I have seen, indeed, a delightful popular satire, apparently a
product of mother-wit, on the methods of popular Buddhist shrine-making;
but, supposing it to be genuine and vernacular, it can stand only for that
measure of freethought which is never absent from any society not pithed
by a long process of religious tyranny. Old Japan, with its intense feudal
discipline and its indurated etiquette, exhibited the social order, the grace,
the moral charm, and the intellectual vacuity of a hive of bees. The higher
mental life was hardly in evidence; and the ethical literature of native
inspiration is of no importance.345 To this day the educated Chinese, though
lacking in Japanese “efficiency” and devotion to drill of all kinds, are the
more freely intellectual in their habits of mind. The Japanese feudal system,
indeed, was so immitigably ironbound, so incomparably destructive of
individuality in word, thought, and deed, that only in the uncodified life of
art and handicraft was any free play of faculty possible. What has happened
of late is the rapid and docile assimilation of western science. Another and a
necessarily longer step is the independent development of the speculative
and critical intelligence; and in the East, as in the West, this is subject to
economic conditions.
Within Brahmanism, again, there have been at different times attempts to set up
partly naturalistic reforms in religious thought—e.g. that of Chaitanya in the
sixteenth century; but these have never been pronouncedly freethinking, and
Chaitanya preached a “surrender of all to Krishna,” very much in the manner of
evangelical Christianity. Finally he has been deified by his followers. (Müller,
Nat. Rel. p. 100; Phys. Rel. p. 356.)
More definitely freethinking was the monotheistic cult set up among the Sikhs in
the fifteenth century, as the history runs, by Nanak, who had been influenced both
by Parsees and by Mohammedans, and whose ethical system repudiated caste. But
though Nanak objected to any adoration of himself, he and all his descendants
have been virtually deified by his devotees, despite their profession of a
theoretically pantheistic creed. (Cp. De la Saussaye, Manual of the Science of
Religion, Eng. tr. pp. 659–62; Müller, Phys. Rel. p. 355.) Trumpp (Die Religion
der Sikhs, 1881, p. 123) tells of other Sikh sects, including one of a markedly
atheistic character belonging to the nineteenth century; but all alike seem to
gravitate towards Hinduism.
Similarly among the Jainas, who compare with the Buddhists in their nominal
atheism as in their tenderness to animals and in some other respects, there has
been decline and compromise; and their numbers appear steadily to dwindle,
though in India they survived while Buddhism disappeared. Cp. De la Saussaye,
Manual, pp. 557–63; Rev. J. Robson, Hinduism, 1874, pp. 80–86; Tiele, Outlines,
p. 141. Finally, the Brahmo-Somaj movement of the nineteenth century appears to
have come to little in the way of rationalism (Mitchell, Hinduism, pp. 224–46; De
la Saussaye, pp. 669–71; Tiele, p. 160).
The principle of the interdependence of the external and the internal life,
finally, applies even in the case of Turkey. The notion that Turkish
civilization in Europe is unimprovable, though partly countenanced by
despondent thinkers even among the enlightened Turks,347 had no
justification in social science, though bad politics may ruin the Turkish, like
other Moslem States; and although Turkish freethinking has not in general
passed the theistic stage,348 and its spread is grievously hindered by the
national religiosity,349 which the age-long hostility of the Christian States
so much tends to intensify, a gradual improvement in the educational and
political conditions would suffice to evolve it, according to the observed
laws of all civilization. It may be that a result of the rationalistic evolution
in the other European States will be to make them intelligently friendly to
such a process, where at present they are either piously malevolent towards
the rival creed or merely self-seeking as against each other’s influence on
Turkish destinies.
In any case, it cannot seriously be pretended that the mental life of Christian
Greece in modern times has yielded, apart from services to simple
scholarship, a much better result to the world at large than has that of
Turkey. The usual reactions in individual cases of course take place. An
American traveller writing in 1856 notes how illiterate Greek priests glory
in their ignorance, “asserting that a more liberal education has the effect of
making atheists of the youth.” He adds that he has “known several deacons
and others in the University [of Athens] that were skeptics even as to the
truth of religion,” and would gladly have become laymen if they could have
secured a livelihood.350 But there was then and later in the century no
measurable movement of a rationalistic kind. At the time of the
emancipation the Greek priesthood was “in general at once the most
ignorant and the most vicious portion of the community”;351 and it
remained socially predominant and reactionary. “Whatever progress has
been made in Greece has received but little assistance from them.”352
Liberal-minded professors in the theological school were mutinied against
by bigoted students,353 a type still much in evidence at Athens; and the
liberal thinker Theophilus Kaïres, charged with teaching “atheistic
doctrines,” and found guilty with three of his followers, died of jail fever
while his appeal to the Areopagus was pending.354
Thus far Christian bigotry seems to have held its own in what once was
Hellas. On the surface, Greece shows little trace of instructed freethought;
while in Bulgaria, by Greek testimony, school teachers openly proclaim
their rationalism, and call for the exclusion of religious teaching from the
schools.355 Despite the political freedom of the Christian State, there has
thus far occurred there no such general fertilization by the culture of the rest
of Europe as is needed to produce a new intellectual evolution of any
importance. The mere geographical isolation of modern Greece from the
main currents of European thought and commerce is probably the most
retardative of her conditions; and it is hard to see how it can be
countervailed. Italy, in comparison, is pulsating with original life, industrial
and intellectual. But, given either a renascence of Mohammedan civilization
or a great political reconstruction such as is latterly on foot, the whole life
of the nearer East may take a new departure; and in such an evolution
Greece would be likely to share.
1 Memoir of Sydney Smith, by his daughter, Lady Holland, ed. 1869, p. 49. Lady
Holland remarks on the same page that her father’s religion had in it “nothing intolerant.” ↑
2 Memoir of Sydney Smith, p. 142. ↑
3 Julien Luchaire, Essai sur l’évolution intellectuelle de l’Italie, 1906, pp. 5–7. ↑
4 Dr. Ramage, Nooks and Byeways of Italy, 1868, pp. 76, 105–13. Ramage describes the
helplessness of the better minds before 1830. ↑
5 Luchaire, pp. 35, 36. ↑
6 Id. p. 30. ↑
7 Doblado (Blanco White), Letters from Spain, 1822. p. 358. ↑
8 Thus the traveller and belletrist J. G. Seume, a zealous deist and opponent of atheism,
and a no less zealous patriot, penned many fiercely freethinking maxims, as: “Where were
the most so-called positive religions, there was always the least morality”; “Grotius and the
Bible are the best supports of despotism”; “Heaven has lost us the earth”; “The best
apostles of despotism and slavery are the mystics.” Apokryphen, 1806–1807, in
Sämmtliche Werke, 1839, iv, 157, 173, 177, 219. ↑
9 C. H. Cottrell, Religious Movements of Germany, 1849, p. 12 sq. ↑
10 Cp. the author’s Evolution of States, pp. 138–39. ↑
11 When I thus planned the treatment of the nineteenth century in the first edition of this
book, it was known to me that Mr. Alfred W. Benn had in hand a work on The History of
English Rationalism in the Nineteenth Century; and the knowledge made me the more
resolved to keep my own record condensed. Duly published in 1906 (Longmans, 2 vols.),
Mr. Benn’s book amply fulfilled expectations; and to it I would refer every reader who
seeks a fuller survey than the present. Its freshness of thought and vigour of execution will
more than repay him. Even Mr. Benn’s copious work, however—devoting as it does a large
amount of space to a preliminary survey of the eighteenth century—leaves room for
various English monographs on the nineteenth, to say nothing of the culture history of a
dozen other countries. ↑
12 Lecky, Hist. of Ireland in the Eighteenth Century, ed. 1892, iii, 382. ↑
13 Cp. Conway’s Life of Paine, ii, 252–53. ↑
14 This translation, issued by “Sherwood, Neely, and Jones, Paternoster Row, and all
booksellers,” purports to be “with additions.” The translation, however, has altered
d’Holbach’s atheism to deism. ↑
15 By W. Huttman. The book is “embellished with a head of Jesus”—a conventional
religious picture. Huttman’s opinions may be divined from the last sentence of his preface,
alluding to “the high pretentions and inflated stile of the lives of Christ which issue
periodically from the English press.” ↑
16 Cp. Dynamics of Religion, pp. 208–209. ↑
17 See Harriet Martineau’s History of the Peace, ed. 1877, ii, 87, and Mrs. Carlile
Campbell’s The Battle of the Press (Bonner, 1899), passim, as to the treatment of those
who acted as Carlile’s shopmen. Women were imprisoned as well as men—e.g. Susanna
Wright, as to whom see Wheeler’s Dictionary, and last ref. Carlile’s wife and sister were
likewise imprisoned with him; and over twenty volunteer shopmen in all went to jail. ↑
18 Hone’s most important service to popular culture was his issue of the Apocryphal New
Testament, which, by co-ordinating work of the same kind, gave a fresh scientific basis to
the popular criticism of the gospel history. As to his famous trial for blasphemy on the
score of his having published certain parodies, political in intention, see bk. i, ch. x (by
Knight) of Harriet Martineau’s History of the Peace. ↑
19 Holyoake, Sixty Years of an Agitator’s Life, i, 109–10. See p. 111 as to other cases. ↑
20 Art. by Holyoake in Dict. of Nat. Biog. Cp. Sixty Years, per index. ↑
21 Articles in Dict. of Nat. Biog. ↑
22 Holyoake, Sixty Years, i, 47. ↑
23 Kirkup, History of Socialism, 1892, p. 64. ↑
24 “From an early age he had lost all belief in the prevailing forms of religion” (Kirkup,
p. 59). ↑
25 Reformers of almost all schools, indeed, from the first regarded Owen with more or
less genial incredulity, some criticizing him acutely without any ill-will. See Podmore’s
Robert Owen, 1906, i, 238–42. Southey was one of the first to detect his lack of religious
belief. Id. p. 222, n. ↑
26 Podmore, i, 246. ↑
27 Kirkup, as cited, p. 64. ↑
28 Podmore, ii, 640. ↑
29 “Extraordinary self-complacency,” “autocratic action,” “arrogance,” are among the
expressions used of him by his ablest biographer. (Podmore, ii, 641.) Of him might be said,
as of Emerson by himself, “the children of the Gods do not argue”—the faculty being
absent. ↑
30 Pamphlet sold at 1½d., and “to be had of all the Booksellers.” ↑
31 Of George Combe’s Constitution of Man (1828), a deistic work, over 50,000 copies
were sold in Britain within twelve years, and 10,000 in America. Advt. to 4th ed. 1839.
Combe avows that his impulse came from the phrenologist Spurzheim. ↑
32 See the details in his Last Trial by Jury for Atheism in England. ↑
33 The Gospel its Own Witness, 1799. rep. in Bohn’s ed. of The Principal Works and
Remains of the Rev. Andrew Fuller, 1852, pp. 136–37. ↑
34 See Prof. Flint’s tribute to the reasoning power of Bradlaugh and Holyoake in his
Anti-Theistic Theories, 4th ed. pp. 518–19. ↑
35 See Mrs. Bradlaugh Bonner’s Charles Bradlaugh, i, 149, 288–89. ↑
36 For a full record see Part II of Mrs. Bradlaugh Bonner’s Charles Bradlaugh. ↑
37 After Bradlaugh had secured his seat, the noble lord even sought his acquaintance. ↑
38 Though young Conservative members, after 1886, privately professed sympathy. ↑
39 Work cited, p. 524. ↑
40 Coquerel, Essai sur l’histoire générale du christianisme, 1828, préf. ↑
41 Dr. Christopher Wordsworth, Diary in France, 1845, pp. 75–77. ↑
42 “The miserable and deistical principle of the equality of all religions” (id. p. 188). Cp.
pp. 151, 153. ↑
43 Id. pp. 15, 37, 45, 181, 185, 190. ↑
44 Id. pp. 157–61. As to the general vogue of rationalism in France at that period, see pp.
35, 204: and compare Saisset, Essais sur la philosophie et la religion, 1845; The Progress
of Religious Thought as illustrated in the Protestant Church of France, by Dr. J. R. Beard,
1861; and Wilson’s article in Essays and Reviews. As to Switzerland and Holland, see
Pearson, Infidelity, its Aspects, etc., 1853, pp. 560–64, 575–84. ↑
45 Louis Philippe sought to suppress this book, of which many editions had appeared
before 1830. See Blanco White’s Life, 1845, ii. 168. ↑
46 Prof. E. Lavisse, Un Ministre: Victor Duruy, 1895 (rep. of art. in Revue de Paris, Janv.
15 and Mars 1, 1895), p. 117. ↑
47 Id. pp. 99–105. ↑
48 Id. pp. 107–118. ↑
49 Id. pp. 118–27. ↑
50 Llorente, Hist. crit. de l’Inquisition de l’Espagne, 2e édit, iv, 153. ↑
51 Rapport of Ch. Fulpius in the Almanach de Libre Pensée, 1906. ↑
52 Squier, Notes on Central America, 1856, p. 227. ↑
53 Before 1840 the popular freethought propaganda had been partly carried on under
cover of Radicalism, as in Carlile’s Republican, and Lion, and in various publications of
William Hone. Cp. H. B. Wilson’s article “The National Church,” in Essays and Reviews,
9th ed. p. 152. ↑
54 Described as “our chief atheistic organ” by the late F. W. Newman “because Dr. James
Martineau declined to continue writing for it, because it interpolated atheistical articles
between his theistic articles” (Contributions ... to the early history of the late Cardinal
Newman, 1891, p. 103). The review was for a time edited by J. S. Mill, and for long after
him by Dr. John Chapman. It lasted into the twentieth century, under the editorship of Dr.
Chapman’s widow, and kept a free platform to the end. ↑
55 Pastor W. Baur, Hamburg, Religious Life in Germany during the Wars of
Independence, Eng. tr. 1872, p. 41. H. J. Rose and Pusey, in their controversy as to the
causes of German rationalism, were substantially at one on this point of fact. Rose, Letter
to the Bishop of London, 1829, pp. 19, 150, 161. ↑
56 Id. p. 481. ↑
57 Ueber die Religion: Reden an die gebildeten unter ihren Verächtern. These are
discussed hereinafter. ↑
58 Lichtenberger, Hist. of Ger. Theol. in the Nineteenth Cent. Eng. tr. 1889, pp. 122–23. ↑
59 See the same volume, passim. ↑
60 Karl von Raumer, Contrib. to the Hist. of the German Universities, Eng. tr. 1859, p.
79. The intellectual tone of W. Baur and K. von Raumer certainly protects them from any
charge of “enlightenment.” ↑
61 Laing, Notes of a Traveller, 1842, p. 181. ↑
62 C. H. Cotterill, Relig. Movements of Germany in the Nineteenth Century, 1849, pp.
39–40. ↑
63 Id. pp. 27–28, 41–42. ↑
64 Cp. Laing, as cited, pp. 206–207, 211. ↑
65 Cotterill, as cited, p. 84. ↑
66 Cotterill. as cited, pp. 43–47. ↑
67 Rapport de Ida Altmann, in Almanach de Libre Pensée, 1906, p. 20. ↑
68 The principal have been: Das freie Wort and Frankfurter Zeitung, Frankfort-on-Main;
Der Freidenker, Friedrichshagen, near Berlin; Das freireligiöse Sonntagsblatt, Breslau; Die
freie Gemeinde, Magdeburg; Der Atheist, Nuremberg; Menschentum, Gotha; Vossische
Zeitung, Berlin; Berliner Volkszeitung, Berlin; Vorwärts (Socialist), Berlin; Weser Zeitung,
Bremen; Hartungsche Zeitung, Königsberg; Kölnische Zeitung, Cologne. ↑
69 Studemund, Der moderne Unglaube in den unteren Ständen, 1901, p. 14. ↑
70 Id. p. 22. ↑
71 A. D. McLaren, An Australian in Germany, 1911, pp. 181, 184. ↑
72 Studemund, Der moderne Unglaube in den unteren Ständen, 1901, pp. 17, 21. ↑
73 Glossen zu Yves Guyot’s und Sigismund Lacroix’s “Die wahre Gestalt des
Christentums.” ↑
74 Studemund, p. 22. ↑
75 Id. p. 23. ↑
76 Id. p. 27. ↑
77 Id. pp. 37–38. ↑
78 Id. pp. 40–42. Cp. p. 43. Pastor Studemund cites other inquirers, notably Rade,
Gebhardt, Lorenz, and Dietzgen, all to the same effect. ↑
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.
ebookultra.com