I want to redirect my jsp to another jsp page by using JavaScript function when I open the BeforeLogin
page. But I got below error message.
This error is created because you're calling a JSP that is trying to use Struts tags without having passed through an action first, and hence not finding the required underlying structure.
Struts2 is an MVC framework, which design implies that a new request must pass through a (C)ontroller (the action) and then be rendered through a (V)iew (the JSP).
You must avoid calling JSPs directly, you must instead call the login action, that after its execution will dispatch the login JSP.
window.open("login.action");