This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts 1.3.5 and Data Source Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 1.3.5 and Data Source" Watch "Struts 1.3.5 and Data Source" New topic
Author

Struts 1.3.5 and Data Source

Mazen Mahmoud
Greenhorn

Joined: Oct 25, 2007
Posts: 20
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

Joined: Oct 29, 2001
Posts: 8935
    
    9

The Struts FAQ explains why they removed datasource and discusses alternatives.


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
Mazen Mahmoud
Greenhorn

Joined: Oct 25, 2007
Posts: 20
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

Joined: Oct 29, 2001
Posts: 8935
    
    9

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

Joined: Oct 25, 2007
Posts: 20
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

Joined: Jun 15, 2009
Posts: 35
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
 
subject: Struts 1.3.5 and Data Source