wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts-config.xml" Watch "Struts-config.xml" New topic
Author

Struts-config.xml

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?

Thanks,
Trupti
dipali toshniwal
Greenhorn

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

regards,
dipali
java-people
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?

Thanks,
Trupti
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.


Merrill
Consultant, Sima Solutions
 
 
subject: Struts-config.xml
 
Similar Threads
jsp refreshing the action class method
Struts - Error - "Cannot find ActionMappings or ActionFormBeans collection"
Filters and web.xml problem + Eclipse
single actionform bean spans multiple jsp pages
Error Configuring TomCat