How many web.xml files could be in a java project/application?

Showing Answers 1 - 2 of 2 Answers

ramarao g.v

  • Nov 3rd, 2006
 

For a webApplication(java-webproject) there should be only one web.xml file(Deployment Descriptor file).As the container searches for the in web.xml only..so it should not be there with someother name or there should not be mappings for servlets in any other xml.If u r using struts then there can be struts-config.xml for mapping the action servlet.

  Was this answer useful?  Yes

sailajavalli

  • Feb 6th, 2007
 

hi there should be only one Web.xml file for a java web program in that you can have any no of struts_config.xml files bsin on the requirement.when ever you give the request from the browser first the deployment descipterreaded.

  Was this answer useful?  Yes

Give your answer:

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

 

Related Answered Questions

 

Related Open Questions