Is it better to have lots of methods to my servlet, or to keep the code inside the doGet or doPost method?
Author: Sushil Srivastava (http://www.jguru.com/guru/viewbio.jsp?EID=744298), Feb 21, 2002I would recommend logically splitting your servlet class into methods rather than putting everyting within one method. Putting everyting in one method smells of structural programming.For e.g not much point in adding database related connection into doPost.
Related Questions
- Is it possible to use a non-EPA-approved method for pesticide active ingredients that do not have approved methods promulgated (i.e., use a facilitys method)?
- Is it better to have lots of methods to my servlet, or to keep the code inside the doGet or doPost method?
- Why is there no Approved Code of Practice on test methods?