File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC 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
JavaRanch » Java Forums » Databases » JDBC
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: 2500
    
    8

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
 
Don't get me started about those stupid light bulbs.
 
subject: JDBC connection using struts framework