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 ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

create a simple login

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
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
 
Marshal
Posts: 79177
377
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Closing as duplicate. And please read this.
 
Story like this gets better after being told a few times. Or maybe it's just a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
    Bookmark Topic Watch Topic
  • New Topic