File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Spring and the fly likes RequestDispatcher null - cant find /j_spring_security_check Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Spring
Bookmark "RequestDispatcher null - cant find /j_spring_security_check" Watch "RequestDispatcher null - cant find /j_spring_security_check" New topic

RequestDispatcher null - cant find /j_spring_security_check

Mat Anthony
Ranch Hand

Joined: May 21, 2008
Posts: 255
Hi All,
I have the following LoginBean that always returns null on a
RequestDispatcher dispatcher = ((ServletRequest) context.getRequest()).getRequestDispatcher("/j_spring_security_check");

My login.xhtml file is



Can anybody help.


Vyas Sanzgiri
Ranch Hand

Joined: Jun 16, 2007
Posts: 686

Why dont you post login form to /j_spring_security_check directly instead of using LoginBean. What is the use of LoginBean?

===Vyas Sanzgiri===
My Blog
I agree. Here's the link:
subject: RequestDispatcher null - cant find /j_spring_security_check
It's not a secret anymore!