Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Can we have multiple struts-config files in a single web
app? If yes why should we have them? Will multiple copies
make any impact on performance?

Answers were Sorted based on User's Feedback



Can we have multiple struts-config files in a single web app? If yes why should we have them? Will ..

Answer / sumit sharma

Yes it is possible... If you are developing the distributed
applications (means do you have diff modules)
then you can provide any number of struts-config.xml files
based on your number of modules.
But the thing is you must enter those struts-config.xml
files details in deployment descripter (i.e. web.xml) like
<init-param>
<param-name>
config</param-name>
<param-value>/WEB-INF/struts-first-config.xml /WEB-
INF/struts-second-config.xml /WEB-INF/struts-third-
config.xml</param-value>
</init-param>
Here I assumed as 'I have 3 modules'. Thats why I entered 3
struts-config.xml files information.
In the time of calling files which are provided under
different modules you must provide Page and prefix
attributes in
your URL.

Is This Answer Correct ?    40 Yes 1 No

Can we have multiple struts-config files in a single web app? If yes why should we have them? Will ..

Answer / kalyan

Yes,we have mulitiple struts-config files ,it depends on
the modules.Suppose we have three modules in
application ,so in this application three struts-config.xml
files are there.
But the thing is you must enter those struts-config.xml
files details in deployment descripter (i.e. web.xml)

Is This Answer Correct ?    12 Yes 1 No

Post New Answer

More Struts Interview Questions

Why do we need mapdispatchtoprops?

0 Answers  


Hi i am murali.i need a excellent answer for the question Tell me about project and project flow ? i mean it is use full to any project,it is on STRUTS

2 Answers  


What is the purpose of @beforeresult annotation?

0 Answers  


what are the struts tags?

1 Answers  


if u r using eclipse tool how can u debbaging u r application? plz explain with sample code

3 Answers   IBM, Tech Mahindra,


How can duplicate form submission be handled in struts 2?

0 Answers  


what is the difference between model1 and model2 architecture in struts?

3 Answers  


How the exceptions are handled in struts?

0 Answers  


Explain about struts relation to html tags?

0 Answers  


what are tiles in struts?

3 Answers   Wipro,


How to display validation errors on jsp page?

0 Answers  


What is the purpose of @after annotation?

0 Answers  


Categories