Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts-config.xml

 
trupti nigam
Ranch Hand
Posts: 627
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think so...because its a framework....

regards,
dipali
java-people
 
trupti nigam
Ranch Hand
Posts: 627
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was asked this question in an interview.I would like more elaborate answer. Any one Please?

Thanks,
Trupti
 
Merrill Higginson
Ranch Hand
Posts: 4864
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic