This may or may not be related, but in my class files I have a method right after the class declaration that has the exact same name (I learned this by following examples in books) in which I declare default values for variables and such; is that method called upon invoking the servlet/bean, because they have the same name? It seems to work that way.
Originally posted by Edwin Keeton:
You can't run a servlet by itself, so it doesn't technically qualify as an application. I think it would be more correct to say that a servlet is an extension, a way to extend the behavior, of a Java application, which is the servlet container.
Originally posted by Hentay Duke:
If you want to concentrate on web apps. A good book to get would be the "Head First Servlets & JSPs".