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 is the significance of logic tags in Struts?

676


Which model components are supported by Struts?

654


What is the design role played by struts?

632


What are the core components of a struct2 based application?

645


How long do struts last?

615






What is the use of jsonvalidation?

679


What is the difference between plain-validator and field-validator?

610


Describe the mvc on struts?

623


What do you mean by ognl?

653


What does execandwait interceptor?

629


What does the term struts mean?

638


Can you explain value stack?

621


How to handle exceptions in structs?

669


What is spring hibernate and struts in java?

572


Are actions thread safe?

620