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

How can we integrate log4j in Struts2 application?

1036


What is the use of namespace in action mapping in Struts2?

1059


What is the purpose of @before?

994


What is the purpose of @after?

1042


When should we use SwtichAction?

1078


What are inner class and anonymous class?

1003


What are the classes used as part of struts framework ?

963


What do you mean by actionmapping?

970


What are different Struts2 tags? How can we use them?

952


What's the purpose of execute method of action class?

952


What is the purpose of @expressionvalidator annotation?

1064


What is the purpose of @after annotation?

1033


What is struts?

988


Do you need an alignment after replacing struts?

944


How can we get Servlet API Request, Response, HttpSession etc Objects in action classes?

1080