Actually, you don't "call" servlets. You make URL requests to the webapp server. The server then dissects the request, routes it, and eventually calls methods in the appropriate servlet class. I know it sounds pedantic, but how you talk influences how you think. Servlets aren't called, they're invoked.
And you generally should NOT have a "login servlet". The technical term for apps that do that is "hacked". Use the JEE built-in security system whenever possible. It blocks many attacks before they can get routed to, much less exploit, a webapp.
When it comes to destroying a civilization, gas chambers cannot hold a candle to echo chambers.
Do you pee on your compost? Does this tiny ad?
Create Edit Print & Convert PDF Using Free API with Java