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

Hi Friends, am new to struts.I read that " you can store
variables in xml file(properties file) and for future
enhancements we just call properties file . Now i want to
implement this , where can i call properties file to
enhance my application. My question is where this properties
file will be called.

Answer Posted / m gangadhar

hi,
use properties file where ever u want it but my suggetion is
use that in service layer. by calling Properties class
methods. if u r testing this app in local means Tomcat place
this properties xml file in parallel to Source directory,
else ur deployed ur application in app servers plz keep
this file in WEB-INF folder means parallel to web.xml.
i hope this ll give u some clarity. if any doubts reply to
me ll give u details.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What configurations are stored in struts configuration file ?

940


What is actioninvocation in struts2?

961


What’s the difference between validation.xml and validator-rules.xml files in struts validation framework?

957


What is the purpose of redirect result type?

972


What is the purpose of @before annotation?

953


What is xml based validation in struts2?

982


What are different ways to create Action classes in Struts2?

1023


What’s the difference between struts and turbine? What’s the difference between struts and espresso?

934


What are the steps required for setting up validator framework in struts?

953


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

930


What is the purpose of struts.xml in struct2?

1075


Which model components are supported by Struts?

982


What is the purpose of action tag in struts.xml?

938


How interceptor works in struts 2?

990


Give the details of xml files used in validator framework?

950