This week's book giveaway is in the Open Source forum.
We're giving away four copies of RabbitMQ in Depth and have Gavin Roy on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes JDBC connection using struts framework Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of RabbitMQ in Depth this week in the Open Source forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC connection using struts framework" Watch "JDBC connection using struts framework" New topic
Author

JDBC connection using struts framework

Abhijit Kangale
Ranch Hand

Joined: Sep 17, 2009
Posts: 39
Hiii all,
I am new to struts. Can anyone give me link which will help me to understand how to establish JDBC connection using struts framework. If any step by step procedure is there that would be helpful. Thanks in advance.

Regards,
Abhijit
wang lei
Greenhorn

Joined: Mar 09, 2010
Posts: 12
establishing JDBC connection is not related with the struts framework,i think.

it's theory is the Class of java.sql.Connection,

such as the fowlling java code.

Connection conn = null;
try{
.....
}

at end,i need to tell you that i am new to study english language,hehe
Jan Cumps
Bartender

Joined: Dec 20, 2006
Posts: 2535
    
  10

Wang is correct. Struts has nothing to do with configuring database connections (it had support for database connections at one time. They removed it because the functionality is available in the web containers).

You might want to look in the tutorial for your java web container to check how to set up and use database connections.
Regards, Jan


OCUP UML fundamental and ITIL foundation
youtube channel
 
wood burning stoves
 
subject: JDBC connection using struts framework