I'd be interested if the posting worked for you.
Cheers Mark
On Tuesday, August 5, 2003, at 03:39 PM, Brian Adams wrote:
Thank you. That is very helpful. B
--- Jian Dai <[EMAIL PROTECTED]> wrote:Hi, Brianhttp://www.mail-archive.com/[EMAIL PROTECTED]/ msg72669.html
I have tried Amit's method. It works. Here is a link of how to create such a servlet in case that you may be interested.
---------------------------------------------------------------------
Jack
-----Original Message----- From: Brian Adams [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 9:33 PM To: Apache Torque Users List Subject: RE: Configure Torque for Struts
I start tomcat with ./bin/catalina run and this is why it works. if I cd into the bin and start catalina then it will not see the Torque.props file. This is one reason why I knew I needed a fix.
-----Original Message----- From: Jian Dai [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 11:34 PM To: Apache Torque Users List Subject: RE: Configure Torque for Struts
I tried to put that file in TOMCAT_HOME. It did not work for me. I am going to try Amit's method later.
Thank you guys very much for the nice help.
Jack
-----Original Message----- From: Amit Rana [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 9:25 PM To: 'Apache Torque Users List' Subject: RE: Configure Torque for Struts
We initially put it in WEB-INF/conf and recently moved it to a package. Where ever we put it I think main problem is in passing the file name to Torque.init method.
We are doing that with an initialization servlet which is loaded on server startup and initializes Torque (alternatively, you can initialize Torque when needed).
Simple code to initialize is: Torque.init(getServletContext_or_request. getRealPath("WEB-INF/conf/Torque.properties"));
Comments are welcome.
Regards, Amit.
-----Original Message----- From: Brian Adams [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 05, 2003 1:11 PM To: Apache Torque Users List Subject: RE: Configure Torque for Struts
ah I see. I had trouble with it and I finally gotit running by droppingthe file in TOMCAT_HOME. I know this is not good but I just left it fornow. Thanks for reminding meabout that I will put this on my TODO for fixing.I do not know how to putthe Torque.propertiesit in the webapp and get it to work. Does anyone on the LIST know? B
-----Original Message----- From: Jian Dai [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 11:09 PM To: Apache Torque Users List Subject: RE: Configure Torque for Struts
Hi, Brian:
Basically, I need to figure out where I can putfile in Struts. In your case, after you generatethe OM classes and putthem into your project, I guess you still need toconfigure this propertyfile so that your OM classes can realize it duringruntime. My question ishow you did it
Thanks a lot for nice help.
Jack
-----Original Message----- From: Brian Adams [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 8:48 PM To: Apache Torque Users List Subject: RE: Configure Torque for Struts
Hey Jack, I am not sure what you mean. I am usingTorque with Struts and Iuse a bean class that contains my Business Logicit makes calls to theObject Model classes. I keep the entire Torquepackage in another area andwhen I gen the OM Classes for my project itcreates them in my project area.Does that make sense? Brian
-----Original Message----- From: Jian Dai [mailto:[EMAIL PROTECTED] Sent: Monday, August 04, 2003 7:54 PM To: Apache Torque Users List Subject: Configure Torque for Struts
Hi, all:
I am planning to use Torque as data module in Struts architecture. Is there anybody who knows how to configure torque for struts?
Many thanks for the nice help.
Jack
---------------------------------------------------------------------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]
---------------------------------------------------------------------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]
---------------------------------------------------------------------To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
=== message truncated ===To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
__________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
--------------------------------------------------------------------- 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]
