hi,
I have a problem when i associated torque with jsp.In fact,I use the IDE
jdevelopper .torque only works very good but when i add in the scope
technologiesjsp,the code in the jsp doesn't reconize the
torque.properties.it seems a problem of directories,but i don't know how to
manage to
I use Eclipse with Struts/Tiles for managing the jsp.
I do not make any Torque references whatsoever in the jsp files. I ensure
that the Struts Action classes pre-load all objects that I am going to need
and put them into beans, either in the request of the session scope. This
helps to keep the
the problem is not confusing presentation and model but when i compile in jdev
i have the exception Could not open file Torque.propertiesbecause i must put
it in a specific directory in jdev that i don't know.
this is the code:
affichage.jsp:
table width=165 border=0 cellpadding=2
You will likely have to code the complete path to the Torque.properties:
Torque.init(/home/user/apps/app/WEB-INF/Torque.properties);
salwa idrissi
You can pass the full path to the Torque.properties file as a parameter
to Torque.init()
On Tue, 2005-03-15 at 09:19, salwa idrissi wrote:
the problem is not confusing presentation and model but when i compile in
jdev i have the exception Could not open file Torque.propertiesbecause i
must
Torque.init() requires an absolute pathname. It's a bummer.
I put the true pathname in another properties file so that I do not have to
hard-code it in the program. This does mean, however, that I have to know
the absolute path where, in my case, Tomcat is installed. Here is my
initialisation
Hello,
Why don't You put the torque.properties file in WEB-INF/classes/ and
load it like this:
if(!Torque.isInit())
{
PropertiesConfiguration pc = new PropertiesConfiguration();
pc.load(
this.getClass().getClassLoader().getResourceAsStream(torque.properties) );
another alternative when you initiate Torque in a servlet is to get the
actual full path from the servlet:
ServletContext ctxt = getServletContext();
String path = ctxt.getRealPath(/)+/WEB-INF/conf/;
Torque.init(path+Torque.properties);
On Tue, 2005-03-15 at 09:48, Andras Balogh wrote:
I use the commons-configuration-1.0-dev-3.jar which has a new method in
org.apache.commons.configuration.ConfigurationFactory called
setConfigurationURL(). This is used to get a Configuration object which you
then use in Torque.init(configuration) in place of Torque.init(pathName).
My code then
hello,
this code works very well ! thank you very much Andras and everyone has
contributed to help me:
if(!Torque.isInit())
{
PropertiesConfiguration pc = new
PropertiesConfiguration();
pc.load(
Nice one!. However I am not always running in a servlet, sometimes it is a
stand-alone program.
However I do like the suggestion of using the class loader to locate it.
The true answer, of course, is that Torque.init() should itself search the
classpath. Add it to the TODO list.
Good evening,
sorry for the desagrement,i want to obtain the type date and enum in my
database mysql.how could i configure my project_schema.xml for this?
thanks.
-
Découvrez nos promotions exclusives destination de la Tunisie, du Maroc, des
Thomas,
You are right. It appears that by executing the
following:
BaseTABLENAMEPeer.executeStatement(SET CURRENT SQLID
= ' +
db2Schema...
for each of the tables that would have been deleted in
a Cascade Delete, it somehow re-initialized Tables in
the dbMap.
Now all I have to do is get the
Jim,
I still not understand the cause of the problem and your solution. What did
you do to make the error do away ?
Looking at the generated code, I do not see how accessing the static method
of one table could possibly initialize or re-initialize the Map builder of
another table.
14 matches
Mail list logo