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.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Tony Morris
Java Q&A (FAQ, Trivia)
SCJP, SCWCD
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.
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
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".
"We're kind of on the level of crossword puzzle writers... And no one ever goes to them and gives them an award." ~Joe Strummer
sscce.org
Is that a spider in your hair? Here, threaten it with this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
|