aspose file tools*
The moose likes Servlets and the fly likes create simple login Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "create simple login " Watch "create simple login " New topic
Author

create simple login

Nag Addepalli
Greenhorn

Joined: Sep 22, 2011
Posts: 9
create a simple login with following rules
1. Jsp -> Only presentation logic
2. Servlets -> Business logic
3. jdbc queries -> Properties files
4. use variables as meaningful names.
5. html field names and servlet fields must be same.
6. Maintain a separate properties file for every module to store jdbc queries
7. Use only prepareStatement(). This line of code should get executed only one time through out the life time of application. So that use static bloxk n write this code. In methods simply write either executeQuery() or executeUpdate() according to requirements after setting all the input values.
8. Write persistence logics (database related logics) only in DAO [Data Access Object] class
9. Exception handling is madatory for every java method
10. Use log4j instead of System.out.println() messages



Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61594
    
  67

What problems are you having with your code?


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Nag Addepalli
Greenhorn

Joined: Sep 22, 2011
Posts: 9
I want total coding for this
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61594
    
  67

Well that's not going to happen. You need to do your own work. We'll help you with it, but you need to write your own code.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: create simple login