This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Struts and the fly likes Struts-config.xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts-config.xml" Watch "Struts-config.xml" New topic


trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
is it possible to configure the struts action classes,forms,mappings using database instead of regular strut-config.xml file?

dipali toshniwal

Joined: Jan 17, 2006
Posts: 8
I don't think so...because its a framework....

trupti nigam
Ranch Hand

Joined: Jun 21, 2001
Posts: 613
I was asked this question in an interview.I would like more elaborate answer. Any one Please?

Merrill Higginson
Ranch Hand

Joined: Feb 15, 2005
Posts: 4864
I'll give you the answer I give my clients when they ask if something outrageous is impossible.

"Sure it's possible, but it's going to cost you!"

In order to do this outrageous and completely unnecessary thing, you'd have to extend the Struts ActionServlet to read a database instead of an XML file. Since Struts is open source, you could obtain the source and figure out what needs to be modified in order to do it.

Consultant, Sima Solutions
Have you checked out Aspose?
subject: Struts-config.xml
It's not a secret anymore!