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
What is the purpose of @before annotation?
What is xml based validation in struts2?
What are action errors and error and what are the consequences they impose?
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
How can duplicate form submission be handled in struts 2?
What is the use of interceptor?
What is actionmapping?
What is interceptor struts2?
What is the differences between struts1 and struts2?
how to debug struts project in netbean ?
Why do we need mapdispatchtoprops?
What are the core components of a struct2 based application?
Why we use struts in java?
What is includeaction?
Is struts 1 still supported?