This is one of our most frequently asked questions so you can either look in our
Servlets FAQ:
http://faq.javaranch.com/search?ServletsFaq where this is covered OR use our search tool to search this forum with the keyword "constructor".
Either way, you'll get your answer very quickly.