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.



Hi Friends, am new to struts.I read that " you can store variables in xml file(properties file..

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

Post New Answer

More Struts Interview Questions

What is the purpose of struct-config.xml in struct2?

0 Answers  


If we close the browser,when the specific user session is active.Again if we open browse how to retrive it same user??what code i have to da???

5 Answers   TCS,


How we can install struts?

0 Answers  


i have list of values(e.g 100). using logic:iterate, how can i print the multiples of 5th element? how the logic:iterate will understand the multiples of 5.

2 Answers   CTS, TCS,


What do you mean by dynaactionform?

0 Answers  






How can we display validation errors on jsp page?

0 Answers  


drawback of Validation Framework where and how to write the connection pool object in the programe how to debug the programe and application in struts without using eclips

1 Answers  


What are action classes in struts?

0 Answers  


What are the components of struts framework?

0 Answers  


What is the purpose of execute() method?

0 Answers  


What do you mean by actionservlet?

0 Answers  


Hi Friends, why struts introduced in to web application. Plz dont send any links . Need main reason for implementing struts. Thanks Prakash

4 Answers  


Categories