This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connecting database through struts

 
mareena
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
 
Nicholas Cheung
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
 
Sandra Cann
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