Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Multiple struts-config file

 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

one application is having multiple struts-confg.xml is there i configured this struts-config files in web.xml with different names, but client is sending one request for 3rd module(in that apllication 3 modules is there and 3 struts-config.xml files is there)how the container will knows this request belongs to 3rd module and how the flow will goes ...

Regards,
vishnu.
 
Anirvan Majumdar
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Basically all the module specific struts-config files specified in the webapp's web.xml file will be read and then stored in the memory. Thereof, any struts action mapping will be looked up in the loaded structure and the consequent mapping will be executed. The multiple struts-config files will have an entry in the web.xml like:


The programmer doesn't really have to write any module specific struts mappings. If two action mappings in different struts-config files are same, then a conflict will occur.
 
Reshma Reddy
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Thanks for your replay,
i just configured all this files in xml file after that how the container will knows for example one welcome page is for the first time there request is coming to welcome page and after that that request will need to do some businesslogic in 3rd module (assume that application will have 3 modules)how the request will goes to 3rd module.


Regards,
vishnu
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic