I tried:
@WebServlet(urlPatterns = "/TestServlet")
public class TestServlet extends HttpServlet {
@Override
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
VaadinSession session = VaadinSession.getCurrent();
// session is null
}
}
Context: I have a few standard servlets mixed in with my normal Vaadin application. They handle for example some download or print requests. But I need a way to check for login/permissions.