GeekInterview.com
Series: Subject: Topic:
Question: 5 of 69

Struts Config File

Can we config more than one struts-config.xml files in 2EE? If Yes, How?
Asked by: ammineni.vasu | Member Since Mar-2010 | Asked on: Mar 18th, 2010

View all questions by ammineni.vasu

Showing Answers 1 - 1 of 1 Answers
anjubhaskar

Answered On : May 4th, 2010

View all answers by anjubhaskar

Yes. We can configure more than one struts- config.xml file.
But we have to mention the path of all struts-config files in the web.xml file.

Just like this...

<init-param>
<param-name>config</param-name>
<param-value>/WEB-INF/conf/struts-default.xml</param-value>
</init-param>
<init-param>
<param-name>config/module1</param-name>
<param-value>/WEB-INF/conf/struts-module1.xml</param-value>

</init-param>

  
Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions

Ads

Connect

twitter fb Linkedin GPlus RSS

Ads

Interview Question

 Ask Interview Question?

 

Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.