This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Servlets and the fly likes Login Page Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Login Page" Watch "Login Page" New topic
Author

Login Page

jasvinder Pal singh
Greenhorn

Joined: Oct 04, 2011
Posts: 6
Hello,

I am new to java language,so need help from you guys.
Which is the best approach to make a login page using servlet and jsp with oracle as backend.
As far i have read in ,configuring database connectivity through init method and passing the response to the respective jsp. Is it the standard version which is used in all the major IT companies.


Regards
Jasvinder Pal Singh
jasvinder Pal singh
Greenhorn

Joined: Oct 04, 2011
Posts: 6
Hello,

I checked few example for login page in internet,why do we use a separate class as connection factory or dao. to set up the connection with database.how is it different from other servlet approach of using jdbc connectivity.
Tushar Bhaware
Ranch Hand

Joined: Aug 13, 2012
Posts: 62

HI,
We use dao(data access object) to make connection with database and do some work on it.
We use servlets as controllers for passing control from one servlet/jsp/dao/beans to other servlet/jsp/dao/beans.
We use Jsp as view (no business logic in it).
We use beans for business logic.
We do all these for modularity. We want separation of responsibilities.
I guess you got my point.
I hope i was any help.
Have fun.
Tushar


Remember you have not inherited earth from your ancestor,you only borrowed it from your descendants.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Login Page
 
Similar Threads
MVC question
How to maintain user name in all the Jsp pages
pass request variables to frames
Redirecting a framed page when session expires
how to send error messages from sendRedirect to Jsp from a servlet