| Author |
How to get the datasource value
|
Maheswaran Devaraj
Ranch Hand
Joined: Sep 14, 2007
Posts: 47
|
|
Hi all, I'm using struts1.3.8 version.I wrote the following code to access the mysql database. But in the following line it is showing error. datasource = getDataSource(request); Error : getDataSource method undefined. How can i resolve this problem regards, Maheshwaran Devaraj
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8259
|
|
|
Struts is not the right tool to use to access a database. This Struts FAQ entry tells you why.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
Merrill Higginson
Ranch Hand
Joined: Feb 15, 2005
Posts: 4864
|
|
|
Not only is it a bad practice to use Struts to access your database, in version 1.3.8, it's not even possible. The Struts datasource utility that was available in previous versions has been removed from version 1.3.8.
|
Merrill
Consultant, Sima Solutions
|
 |
 |
|
|
subject: How to get the datasource value
|
|
|