This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Struts and the fly likes Struts2-Database configuration Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts2-Database configuration" Watch "Struts2-Database configuration" New topic
Author

Struts2-Database configuration

Mariya Antony christopher
Ranch Hand

Joined: Jan 24, 2012
Posts: 49

please let me know How to configure the database in struts.xml.
Joe Ess
Bartender

Joined: Oct 29, 2001
Posts: 8876
    
    8

You don't. Struts is an implementation of the Front Controller Pattern. It has nothing to do with back-end tasks like interfacing to a database. This FAQ entry from Struts 1.3 is still valid for Struts 2.x


"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
 
wood burning stoves
 
subject: Struts2-Database configuration