File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes default constructor in HttpServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "default constructor in HttpServlet" Watch "default constructor in HttpServlet" New topic
Author

default constructor in HttpServlet

saravanan ragunathan
Ranch Hand

Joined: Aug 02, 2010
Posts: 84

I studied that "please don't define the constructor as your own when extending HttpServlet
use the default one given by compiler "what does the default construcor do ?


"I Love Java Ranch"
Christophe Verré
Sheriff

Joined: Nov 24, 2005
Posts: 14687
    
  16

"please don't define the constructor as your own when extending HttpServlet use the default one given by compiler"

This does not make any sense (although I sense it might have to do something with this). Where did you read this ?


[My Blog]
All roads lead to JavaRanch
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60053
    
  65

Please SearchFirst. The subject of constructors in servlets has been broached many times.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: default constructor in HttpServlet
 
Similar Threads
Can i write a constructor in my servlet
servlet creation-init() or constructor
constructor for a servlet
when the container instatiates the servlet will it
How can i resolve this exception