KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to modify my spring security login page based on where the user came from. My client wants the styles different between the two. If you come from appcontextroot/test vs appcontextroot/choose . I tried to do the below but the String url=savedRequest.getRedirectUrl(); is equal to the spring login page already and not the initial page requested by the user. Any ideas? ExternalContext externalContext = FacesUtils.getExternalContext(); HttpServletRequest request = (HttpServletRequest)externalContext.getRequest(); HttpSession session = request.getSession(false); if(session != null) { SavedRequest savedRequest = new DefaultSavedRequest(request, new PortResolverImpl()); String url=savedRequest.getRedirectUrl(); }
Tags (comma-separated)
Save Edits
Cancel