• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

spring-security - SwitchUserFilter: Unable to forward to switchUserUrl from controller  RSS feed

 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I am trying to build switch user functionality in our application using spring-security. The functionality works fine when I use the url in the browser:

http://localhost:8080/testApp/j_spring_security_switch_user?j_username=testUser


But my use case requires me to forward to this url from a controller. I get mapping not found exception when I try to forward the request to this url from a controller method.

noHandlerFound No mapping found for HTTP request with URI [/testApp/j_spring_security_switch_user] in DispatcherServlet with name 'testApp'

.
I am not sure why spring dispatcherServlet cannot find the mapping when called from with in a controller. I would appreciate your response.


Thanks,
Karthik
 
When all four tires fall off your canoe, how many tiny ads does it take to build a doghouse?
ScroogeXHTML - small and flexible RTF to HTML converter library
https://coderanch.com/t/710903/ScroogeXHTML-RTF-HTML-XHTML-converter
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!