• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Why redirect script downloads page instead of redirecting?

Ranch Hand
Posts: 48
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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


 [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
Alas, poor Yorick, he knew this tiny ad:
a bit of art, as a gift, the permaculture playing cards
    Bookmark Topic Watch Topic
  • New Topic