Generic servlet is a subclass of servlet interface. Generic servlet have one init() menthod. wht i m doing is extending the generic servelet and overwrite Init() method so my question is when that init() method will going to be call as web container will call the init(servlet config) method.
i know but web container can only call init with one argument(which is declare in servlet interface) but i m overwriting init() with no argument which is in generic servlet class method so in that case when that init() will call.
actually now me having problems with exporting the caption to excel.. everything is exporting but not caption.. i tried nested tables nested columns and all.. can you help me with POI export(i heard about it) thank you
If you overwrite init() method at all , its for HttpServlet so that you can put some initialization parameters specific to that servlet instance and also provide the config object to the superclass using super.init(config), just in case you need to use that object later . While extending GenericServlet you dont need to overwrite the init method , its already there.