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

Are the struts tags xhtml compliant ?

542


What is the use of jsonvalidation?

601


What is dispatch action class?

615


What is strut web xml?

535


Explain about the process of functioning of the struts program?

593






How struts2 supports internationalization?

658


What is container struts2?

531


What are the 5 constants of action interface?

546


What configurations are stored in struts configuration file ?

539


Which design pattern the interceptors in struts2 is based on?

498


Explain struts?

559


Difference between struts and spring? Or why use spring, if you are already using struts?

537


Does struts include its own unit tests?

531


Can we handle exceptions in Struts programmatically?

519


What’s the difference between struts and espresso?

508