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
How many struts config file can be created in struts?
What is actioninvocation?
Why is action servlet a singleton in struts?
How to convert struts to spring mvc?
Mark the differences between html tags and strut specific html tags.
What is the purpose of @after annotation?
Which design pattern the interceptors in struts2 is based on?
What is use of i18n interceptor?
What is the significance of logic tags in Struts?
What is front controller in struts?
Why struts 1 classes are not thread safe whereas struts 2 classes are thread safe?
How are interceptors and servlet filters different?
Can you explain the directory structure for a struts folder in brief ?
Why do we use struts?
How can duplicate form submission be handled in struts 2?