Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当用户在浏览器中点击 url 时,我想调用登录页面。详细信息是:它是一个 vaadin 应用程序,当 url 被点击时,它会转到 HttpServlet 扩展类的 doGet 方法。现在我想从这个类中调用一个登录页面。有什么帮助吗?
提前致谢
这是一个相当简单的解决方案,我应该对 response.sendRedirect() 进行一些研究,我只是没有删除此 sendRedirect() 行之后的代码,并且在调用某些函数时在下一行抛出错误。所以最后将其删除,然后使用 response.sendRedirect("login") 重定向到登录页面。我通过它
感谢 RolandKrüge 的帮助。:)