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 |
Explain integrate log4j in struts2 application?
How can forward action be used to restrict a strut application to mvc?
when we enter the data in the form how it is stored in formbean class setter and getter methods?
Hi Friends, why struts introduced in to web application. Plz dont send any links . Need main reason for implementing struts. Thanks Prakash
Is struts action class singleton?
How can we upload files in Struts2 application?
What are the loop holes of struts?
What are the struts2 error message keys that can come during file uploading process?
What is token used for?
What is the purpose of @urlvalidator annotation?
is it possible to see actionservlet in my system. if yes how
What is the difference between requestaware and servletrequestaware interface?