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.



Hi Friends, am new to struts.I read that " you can store variables in xml file(properties file..

Answer / 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

More Struts Interview Questions

What validate() and reset() method does ?

0 Answers  


Explain about how requests from the client are sent?

0 Answers  


Can we have more than one struts-config.xml file for a single struts application?

0 Answers  


What is apache struts cve 2017 5638?

0 Answers  


What is the role of a handler in mvc based applications?

0 Answers  






how many methods are there in RequestPrccesor class?

2 Answers   Infosys,


how to get the last 10 elements using logic:iterate in struts with hiernate from database.

0 Answers   Wipro,


What is the naming convention for a resource bundle file in struts2?

0 Answers  


How is the action mapping specified?

0 Answers  


Which class of struts is responsible to converts data types from string and vice versa?

0 Answers  


What does the term struts mean?

0 Answers  


Can we have different controllers in one struts app?

7 Answers   Accenture,


Categories