• 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

connecting database through struts

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
You can't expect to wield supreme executive power just because
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic