For that purpose, we used
System.getProperty("CATALINA_HOME")
(but this can be only used if your upload file path is in your Tomcat
directory.)hth, Shin Ohkubo >> -----Original Message----- >> From: Amine Bousta [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, January 20, 2004 12:36 AM >> To: Torque >> Subject: Adding personal variables in Torque.properties files >> >> >> Hello, >> >> I have made a JSP,Struts&Torque program that I would like to >> install in >> another server than mine. >> For file upload purposes I made a "setUploadedFile" in a >> torque bean. But it >> uses a file path that can be different from a server to another. >> I would like to know if it would be possible to define a >> value that can be >> accessed from all of my torque objects without using the >> database. I first >> thought about the "Torque.properties" file but I don't know >> how to use it... >> Is it possible to declare a new variable in >> Torque.properties and then >> accessing to its value from a Torque bean? >> >> Regards >> Amine >> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
