My redirect Authentication method is supposed to redirect to a page specified in the select option value but instead it downloads a file named login.
i am confused where to use getQueryString or request.getRequestDispathcer("requestUrl").forward(request, response)[Reference][2].
I also do not understand why it keeps downloading a file named login.
Login Page
Login Controller
Security Config
[1]:
http://stackoverflow.com/questions/42520877/how-to-redirect-to-requested-page-after-login-in-spring/42521057#42521057
[2]:
http://stackoverflow.com/questions/20371220/what-is-the-difference-between-response-sendredirect-and-request-getrequestdis