File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 agree. Here's the link:
subject: Struts 2 and JDBC
It's not a secret anymore!