This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Struts and the fly likes exception while trying to use <data-sources> Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "exception while trying to use <data-sources>" Watch "exception while trying to use <data-sources>" New topic

exception while trying to use <data-sources>

Malika Ben Aziz

Joined: Oct 26, 2009
Posts: 23
hello all of you

I am trying to follow a tutorial that uses a 1.1 dtd of struts:

my example is coded this way...with the 1.3 dtd :

that causes this awful exception:

Is struts 1.3 do not use no more <data-sources> ?

PLease, is anyone knows how to exploit a data source with the 1.3 version?

thanka a lot!

Joe Ess

Joined: Oct 29, 2001
Posts: 8836

Malika Ben Aziz wrote:
Is struts 1.3 do not use no more <data-sources> ?

Correct. The Struts developers came to the (correct) conclusion that a front controller has nothing to do with a database. See here for their logic and alternatives.

"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
I agree. Here's the link:
subject: exception while trying to use <data-sources>
Similar Threads
Problems with Struts 1.3.8
InvalidMappingException in Hibernate
Attribute "value" must be declared for element type "property"???
Newbie HelloWorld Struts.xml problem
struts2 + interceptor