I want to stop
servlet from getting loaded based on following conditions.
1)A parameter is not matched.(It might be in DD or application specific properties file).
2)based on a parameter fethced from database.
What should i use amongst the following:
1. servlet's init().
2. ServletContext Listener.
Which is better/appropriate?
for database connection i would like to do a look up on aready configured resource in Application server.