Your direction sounds wrong. If you are writing HTL component like PageTitle component that must render page name, you dont need servlets, instead use Sling models to render the page name server side. Idea is, the page originates at AEM serverside. While AEM prepares the page, you attempt to render...