• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

connecting database through struts

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Sir

I heard about connecting database through struts two ways
1. Action class
2. struts config.xml


i have problem in connecting database through struts as i am relevently new to it. i wanted to test it with my MS Access.

Please help me how to do this

thanks
 
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How did you connect?

I have no problem with connecting the DB in Structs.

For simplicity, you can create a JDBC reference in the ActionDispatcher, and connect to the DB by JDBC driver.

If you know a bit about JNDI, you may bind the connection reference to the JNDI, and look it up in the Action method.

What is the problem you actually faced?

Nick
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Expresso (open source) provides much in the way of quickly creating databased applications with Struts integration. The new release Expresso 5.5 now integrates with Struts 1.1. You can find it at www.jcorporate.com.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!