• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Simple JSP Login Page Help needed

Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.

With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic