Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 1.3.5 and Data Source

 
Mazen Mahmoud
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I want to migrate my struts application from 1.1 to struts 1.3.5 Previously there was the data-sources and data-source tags in struts-config.xml which are removed from 1.3.5 Can anyone help me how to configure database connections with struts 1.3.5? (define database URL, username etc..)

N.B: I'm using tomcat 5.5 and oracle 9i database
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The Struts FAQ explains why they removed datasource and discusses alternatives.
 
Mazen Mahmoud
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is nothing important in the faq!!! check it carefully ... I know that we should use JNDI. I've already modified my server.xml (creation of defaultcontext inside the host + creating resource etc.. also in web.xml i make the refernece). the problem is that it's not working.
 
Joe Ess
Bartender
Posts: 9214
9
Linux Mac OS X Windows
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If that's the case, you need to Tell The Details. You haven't given us any useful details about the problem that you are having.
 
Mazen Mahmoud
Greenhorn
Posts: 20
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your time ... I manage to solve it... the problem was in my server.xml resource definition. Everything is OK. Thanks..
 
vinod chemmi
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
please tell the details.How you solved it?Me also facing the same probles.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic