File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

Win a copy of REST with Spring (video course) this week in the Spring forum!
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
I agree. Here's the link:
subject: Struts-config.xml
It's not a secret anymore!