This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 2 and JDBC Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 and JDBC" Watch "Struts 2 and JDBC" New topic

Struts 2 and JDBC

Abhishek Purwar
Ranch Hand

Joined: Dec 15, 2007
Posts: 63

Hi freinds,
I am new to struts and got stuck in a situation.
I am using struts 2 and want to cofigure mysql datbase with my application.
But i am not able to connect.
Kindly guide me with an example which help me in writing config file for struts and
action class for accessing database.
I want to use only struts 2 framework and not not anyother like spring,hibernate.
So please help me out with some example so that i can understand the concept.

Thanks to all.

Abhishek Purwar,
David Newton

Joined: Sep 29, 2008
Posts: 12617

There's nothing Struts 2-specific about using MySQL; you'll want to ask this question in the JDBC forum.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Struts 2 and JDBC
jQuery in Action, 3rd edition