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 do you mean by ognl?

0 Answers  


Where can I get help with struts?

0 Answers  


Do I have to credit struts on my own website?

0 Answers  


1.can we transfer a request from one struts application to another struts application? 2. how many types of action servlets r there what r they

0 Answers   TCS,


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

0 Answers  






What are the reasons for an error message not being displayed while developing struts application?

0 Answers  


What is the role of action class in struts?

0 Answers  


What is the difference between Jakarta Struts and Apache Struts? Which one is better to use?

0 Answers  


Can you call Action class methods from Struts config.xml?

1 Answers   iGate,


Can you explain value stack?

0 Answers  


Explain integrate log4j in struts2 application?

0 Answers  


What is value stack?

0 Answers  


Categories