Search code examples
jakarta-eevaadin7vaadin4spring

Calling Vaadin ui (Login page) from HttpServlet class


I want to call login page when a user hits a url in the browser. Details are: Its a vaadin application, when url is hit it goes to a doGet method of HttpServlet extended class. Now i want to call a login page from this class. Any help for it?

Thanks in advance


Solution

  • It was rather a simple solution i should have researched a little bit regarding the response.sendRedirect() and i just did not remove the code after this sendRedirect() line and it was throwing error in the next line while calling some function. so lastly removed it and then it redirects to login page by using response.sendRedirect("login"). and i am through it

    Thanks RolandKrüge for your help. :)