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...

In strurt why w use two differnt files web.xml and strut
config.xml?

Answer Posted / naman patidar

web.xml is an application level configuration file.
struts-config.xml is framework specific file and name of
this file is configured in we.xml under tag

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

you can change the name of file and location here.

Is This Answer Correct ?    18 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why we use struts over servlets?

1002


Can we have multiple struts config files in a single web app?

890


What are different ways to create Action classes in Struts2?

1023


What are the 5 constants of action interface?

962


What are the some useful annotations introduced in struts2?

934


Explain the life cycle of a request in struct2 application?

867


How can forward action be used to restrict a strut application to mvc?

931


How to handle exceptions in structs?

1026


What is the purpose of @emailvalidator annotation?

955


Explain about the future of struts?

888


What is discontinuous strut?

878


Describe the two types of formbeans.

944


What is token used for?

875


Are the struts tags xhtml compliant ?

889


Are interceptors thread safe?

951