• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Multiple struts-config file

 
Ranch Hand
Posts: 197
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 261
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
It wasn't my idea to go to some crazy nightclub in the middle of nowhere. I just wanted to stay home and cuddle with this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic