• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
  • Knute Snortum
  • Liutauras Vilda
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Carey Brown
  • Joe Ess
  • salvin francis
  • fred rosenberger

Simple JSP Login Page Help needed

Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

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.

Ranch Hand
Posts: 118
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

today's feeble attempt to support the empire
Java file APIs (DOC, XLS, PDF, and many more)
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!