Through login.jsp
I needed some value, so I forwarded request to controller after this I want to dispatch to default j_spring_security_check
from controller.
How do I do that ?
Since /j_spring_security_check is handled in a filter you'll need to add an extra bit to your Spring Security filter mapping, for example:
<filter-mapping>
<filter-name>springSecurityFilterChain</filter-name>
<url-pattern>/*</url-pattern>
<dispatcher>REQUEST</dispatcher>
<dispatcher>FORWARD</dispatcher>
</filter-mapping>
<dispatcher>FORWARD</dispatcher>
will allow you to forward the request from your controller.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With