This is the first time i m developing a jsp page that will implement login functionality.
The database : Oracle XE.
Application Server : Apache 5.5.29
JDBC driver path=/usr/lib/oracle/xe/app/oracle/product/10.2.0/server/jdbc/lib/ojdbc14.jar
Here is what i want to achieve.
There should be a Login page asking user about username and password.
After user click on submit username and password should get authenticated against oracle xe database .
If the credentials are correct then he should be redirected to Proper page (i.e.FirstPage.jsp) .
If the credentials are not correct then he should be given a message to reenter the credentials .
IMP: If user directly accesses the url by bypassing the login page i.e(FirstPage.jsp). He should be redirected to login page.
What kind of changes required at Application server end to incorporate the database connectivity.
Any help regarding how should i go about it is highly appreciated.
You will more likely get help if you show us what you got and if you tell us what you have tried and what you think the solution involves. That way it is hopefully easy to know where you are stuck and give you a hint in the right direction.
I am refreshing my jsp atm and my first very ugly version is as follows. This is not the proper way to do it, but might at least get you thinking.