Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts-Database Connectivity

 
vikas malviya
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • 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
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This doesn't really have anything to do with Struts. Moving to... JEE?
 
Ankit Garg
Sheriff
Posts: 9528
33
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • 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...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic