When setting up JDBC Realm we specify the form-login-page which loads at first for authentication. If it occurs first, how the welcome file specified in web.xml loads? Will JDBC Realm redirect to welcome file when login is success?
Asked
Active
Viewed 37 times
0

user207421
- 305,947
- 44
- 307
- 483

Sidath Asiri
- 359
- 4
- 18
-
1It doesn't occur first. It occurs when you navigate to a URL that needs authentication. That could be the welcome file but more commonly it isn't. – user207421 Jul 12 '17 at 17:57
-
Thanks. Now I understand how it works – Sidath Asiri Jul 13 '17 at 03:57
1 Answers
0
It will go to whatever page you were trying to access that triggered the authentication.
This is not peculiar to the welcome page or to JDBCRealm.

user207421
- 305,947
- 44
- 307
- 483
-
It would be great if you can explain how this whole thing works shortly. I am confused about the workflow of it – Sidath Asiri Jul 12 '17 at 17:47
-
1It works by remembering what you were trying to do when you hit the authentication requirement, and then taking you there once you authenticate successfully. – user207421 Jul 12 '17 at 17:56
-