• 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 ...
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

Getting SQL Data in JSP or Servlet

 
Ranch Hand
Posts: 15304
6
Mac OS X IntelliJ IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have been using JSTL's sql calls to build a datasource and retrieve information from a database and then iterate through what I need with c:forEach.
My question is 2 fold.
1. Is there a rule of thumb as far as accessing a database through JSTL or from a Servlet the best approach. (keeping in mind I do nothing but display the data, no computations, etc)
2. Is there a Tag way to use a ConnectionPool inside of a JSP page without using scriplets? I am using Resin and I think they may have a tag I can use but can't find the documentation anywhere if there is. (This of course will primarily depend on the answer to the first question.
Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic