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 / 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 |
What is the purpose of dispatcher result type?
explain the Struts flow?
What types of Actions we have in Struts?
Can i use constructor in Action Class?If yes how?
Explain about logic match tag?
How to override the default error message that can come during file uploading process?
What is used to display the intermediate result in an interceptor?
What is the purpose of @intrangefieldvalidator annotation?
In strurt why w use two differnt files web.xml and strut config.xml?
What is the purpose of @emailvalidator?
In web.xml file instead of *.do can i write *.ibm, Specify with example
Are actions thread safe?