Which is best practice for stowing objects, request or session context?

2005-06-04 Thread Adrian Beech
Hi all, A work colleague mentioned on Friday it would be better to place objects (beans and the like) which had been created in a servlet into the request context when exposing them to the JSP. To date all the code I've written stores beans and the like in the session context and all has

Passing init params to a listener?

2004-03-14 Thread Adrian Beech
G'day all, Can someone please advise how to pass init params to a listener? For example, in my web.xml file I have the following listener currently defined as:- listener listener-classczone.db.InitConnectionPool/listener-class /listener At the moment all parameters are hard coded in

RE: Passing init params to a listener?

2004-03-14 Thread Adrian Beech
= application.getInitParameter(mySQLServerName); String mySQLPort = application.getInitParameter(mySQLPort); - Original Message - From: Adrian Beech [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 11, 2004 2:07 PM Subject: Passing init params to a listener? G'day all, Can someone

Where is the source code that processes the server.xml file?

2004-02-21 Thread Adrian Beech
G'day all, Can someone please tell me where I might find the Java code in the Tomcat 5.0 source tree which is responsible for processing the server.xml file? I'm particularly looking for the code that is employed to handle the resource ... elements in the server.xml file. I would greatly

Terminating or suspending an application if a on start up servlet throws an exception?

2004-01-18 Thread Adrian Beech
G'day, Is it possible to have Tomcat 4.1.x terminate or suspend access to an application if a servlet which is fired at start up throws an exception? For example, we have two servlets which are loaded on start up. The first one sets up the database connection pool and the second one does various

Setting up a data source resource reference using a JNDI property file

2003-11-12 Thread Adrian Beech
G'day folks, I was wondering if it is possible to set up a data source resource reference using a JNDI property file? If this is possible then does anyone have a sample sort of file that will show how to set up a connection pool to an Oracle DB? I have been successful thus far whilst

Has there been a stable (non beta) rlease of Tomcat 5 yet?

2003-10-29 Thread Adrian Beech
G'day folks, Well the subject line really says it all! Just wondering if there has been a Tomcat 5.0 release yet? So far I've only spotted 5.0.12 beta mentioned on the Apache (Jakarta section) web site. AB - To unsubscribe,

Blowing away objects that have been stored in the session context

2003-10-05 Thread Adrian Beech
G'day all, Does Tomcat release all the resources used by an object if the object has been stored in the session context and a call to session.removeAttribute(objName) is made? I'd like to blow away several beans that are used throughout the processing of a transaction once the confirmation page

Tomcat version 3 certificates?

2003-09-19 Thread Adrian Beech
G'day all, Earlier today we were advised by a bod from another section in our organisation that there is a known compatibility issue with Tomcat and version 3 certificates. Apparently he had been advised of this from someone at Verisign. Does such an issue really exist and if so is it solely

JSP seems to be executing twice and we are getting duplicate records in our database

2003-08-04 Thread Adrian Beech
Hi folks, We have a weird problem where a JSP seems to be executing twice and we are getting duplicate records in our database. The data is coming from a HTML form and upon submit a subsequent JSP page is called that performs the SQL insert, etc. We are also getting duplicate log messages so

RE: JSP seems to be executing twice and we are getting duplicaterecords in our database

2003-08-04 Thread Adrian Beech
Message- From: Adrian Beech [mailto:[EMAIL PROTECTED] Sent: Monday, 4 August 2003 8:45 PM To: [EMAIL PROTECTED] Subject: JSP seems to be executing twice and we are getting duplicate records in our database Hi folks, We have a weird problem where a JSP seems to be executing twice and we

RE: Servlets JSPs log to different files

2003-08-01 Thread Adrian Beech
G'day, Can anyone expand on this further and explain how to use a Log4j logger reference in beans that do not have a notion of what the underlying servlet context is? The only way I can see how to get this to work is to pass the logger reference as an argument in the bean's constructor. My

Combining Jboss Tomcat?

2003-07-12 Thread Adrian Beech
G'day folks, I currently have an existing Tomcat 4.1.24 and J2SE 1.4.2 set up under Windows XP Pro and all seems to be sweet. Now I'd like to extend things a bit and add Jboss into the loop for EJB support. Are there HOWTO's floating around which describe the installation and configuration of

Resolving scriptlets when using a client side SCRIPT ... tag?

2003-07-05 Thread Adrian Beech
G'day folks, Is it possible to get Tomcat to process a include file and resolve embedded scriptlets if the file is referenced from a client side SCRIPT ... tag? In the two .js files I'm trying to work with there are several scriptlets that need to be resolved by Tomcat prior to sending the

What sort of servlet is required when using it with auto load?

2002-08-13 Thread Adrian Beech
Hi folks, I would like to put together a servlet that will be used solely for setting up such things as connection pools, etc. This servlet will be auto loaded when Tomcat is started with the appropriate entries in the web.xml file. The connection pools will be saved as an application scoped

Is Tomcat/MySQL a suitable combination in a production environment under Windows 2000 Pro?

2002-04-21 Thread Adrian Beech
Hi folks, Is Tomcat/MySQL stable enough to deploy as a production platform under Windows 2000 Pro? I'm looking for a suitable platform to publish data driven web pages in a local Intranet environment. At present we are using PWS/MS Access under Windows 95. I'd like to move onto something

Is Tomcat/MySQL suitable to deploy as a production platform under Windows 2000 Pro?

2002-04-21 Thread Adrian Beech
Hi folks, Is Tomcat/MySQL stable enough to deploy as a production platform under Windows 2000 Pro? I'm looking for a suitable platform to publish data driven web pages in a local Intranet environment. At present we are using PWS/MS Access under Windows 95. I'd like to move onto something

Re: Adobe Acrobat

2002-04-09 Thread Adrian Beech
Huh, there is a printer driver that produces PDF files? Tell me more... oh please tell me more! This could be an answer to an issue I have with trying to read reports generated in Crystal reports within a browser, h... Adrian [EMAIL PROTECTED] - Original Message - From: John

Is there a native JDBC driver for MS Access?

2002-04-06 Thread Adrian Beech
... Any help would be appreciated. Adrian Beech [EMAIL PROTECTED]

Re: Is there a native JDBC driver for MS Access?

2002-04-06 Thread Adrian Beech
/ODBC bridge or purchase one of the proprietary drivers available. I know there are Paradox, FoxPro and dBase IV drivers but I have not seen any for Access. - Original Message - From: Adrian Beech [EMAIL PROTECTED] To: 'Tomcat Users List' [EMAIL PROTECTED] Sent: Sunday, April 07, 2002