Ulf Dittmer wrote:That class has a constructor - servlets should never have a constructor, and absolutely, positively not one that takes parameters.
But i am not creating any object for the class, hence the constructor will not be invoked. Anyways i will try once again by deleting it. Thanks for your valuabl reply.
Joined: Mar 22, 2005
But i am not creating any object for the class, hence the constructor will not be invoked.
YOUR code does not call any constructors (which is as it should be), but the servlet container sure does. How could the servlet container invoke non-static methods if it didn't construct an object first? But what the servlet container expects is no-argument constructor; not anything with parameters.