Hi Guyz,
First I apologize if I posted it in wrong forum.
I have an HTML page which is controlled by jquery i.e. I have implemented jquery specific syntax to read "click" of a button.So there is no
Java controller (i.e. Spring controller or a
servlet) involved here.For data fetching and updating I am using DWR(direct web remoting) framework calls.
Now there is a requirement to force users to redirect to a Login screen - that will just have username,password and submit button.So anytime user accesses the HTML page without authentication(meaning cookies are not there in browser),he should be forced to enter username and password.
In effect,when user accesses
http://hostname/context/management.html without authenticating himself,he should be directed to
http://hostname/context/login.do .After entering correct authentication details and pressing submit button,he should again be taken to
http://hostname/context/management.html .
What is the best way to do it ?is it even possible with the current design that I have in place?