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:abousta@lxsolutions.com]
>> 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: torque-user-unsubscribe@db.apache.org
>> For additional commands, e-mail: torque-user-help@db.apache.org
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org
For additional commands, e-mail: torque-user-help@db.apache.org
|