• 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
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Struts-Database Connectivity

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everyone...

i am the beginner in struts and want to do the database connectivity with ms-sql,
i want to do the simple 4 operations Select,Insert,Update,Delete.

but i read that we can connect the database by using jndi,so please can anyone provide me the details about the struts-database connectivity with simple example,please also suggest me books for it.

Thanks in advance.

Regards,
Vikas Malviya
 
Author
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This doesn't really have anything to do with Struts. Moving to... JEE?
 
Sheriff
Posts: 9697
43
Android Google Web Toolkit Hibernate IntelliJ IDE Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Database connectivity through JNDI is actually using a Connection Pool to the database. This connection pool is maintained by the container. Only the lookup of the database connection is different and rest of the code to do database operations is just like normal JDBC. You can get a lot of examples on this like here and here. This doesn't has much of a relation with Struts, you can use this even in applications that don't use Struts...
reply
    Bookmark Topic Watch Topic
  • New Topic