Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to connect database using jsp  RSS feed

 
sureshkumarneeli kumar
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Can any one tell me how to retrive data or one particular table using jsp. I am using Tomcat 5.0 and oracle10g express edition. Please help breefly i am new using jsp technology
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66141
141
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you are new to JSP, then you need to know that performing database access in a JSP is a very very poor practice. Using JSP for anything other than creating the display is severely frowned upon for almost 10 years now, since the inception of JSP 2.0.

All activités such as database access should be performed in Java classes, not in the JSP, and the results are then sent to the JSP fro display.

I always recommend that novices to JSP read the following articles:
  • The Secret Life of JSPs
  • The Front Man


  • Hopefully they will help set you on the right track.
     
    It is sorta covered in the JavaRanch Style Guide.
    • Post Reply Bookmark Topic Watch Topic
    • New Topic
    Boost this thread!