Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connecting database through struts

 
mareena
Greenhorn
Posts: 9
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic