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 are interceptors in struts 2?

1 Answers  


Can you explain aware interfaces in struts2?

1 Answers  


Hi All thanks in advance, iam new to j2ee currently in my project we r using struts with hibernate can i have one sample application like CRUD application with code or any tutorials liks r ebooks plz....?

1 Answers   IBM,


What are disadvantages of Struts?

1 Answers  


Explain about how requests from the client are sent?

1 Answers  


What is the difference between validation.xml and validator-rules.xml files in struts validation framework?

1 Answers  


Can you explain value stack?

1 Answers  


What happens when Two users requests for same action class? How the threads are controlled?

4 Answers  


What is the difference in using Action interface and ActionSupport class for our action classes, which one you would prefer?

1 Answers  


What is the purpose of @expressionvalidator annotation?

1 Answers  


What are the benefits of Struts framework?

1 Answers  


What is actionservlet?

1 Answers  


Categories