Win a copy of Java 9 Modularity: Patterns and Practices for Developing Maintainable Applications this week in the Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Why redirect script downloads page instead of redirecting?  RSS feed

Molayo Decker
Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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


  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!