Title: Messaggio
Today I run into an dubt:
is the way I always used to store application dependent configuration is correct?
 
I use to store this kind of information in the we.xml file using <context-param> like this one
 
 <context-param>
  <param-name>uploadedFilePath</param-name>
  <param-value>D:/Documenti/Progetti/jClubHouse/build/uploadedFiles/</param-value>
  <description>The path to save the uploadedFiles to</description>
 </context-param>
 
and then inside actions, I retrieve it using
 
String uploadDir=getServlet().getServletContext().getInitParameter("uploadedFilePath");
 
 
is there a better practice or is this the right one?
 
Simone
 
-------------------------
Simone Chiaretta
www.piyosailing.com/S
Any sufficiently advanced technology is indistinguishable from magic
"Life is short, play hard"

Get Firefox!
 

Reply via email to