RE: I've officially decided that JSTL is one of the worst things to ever happen to mankind

2004-07-04 Thread Tom K
discovered that maintaining Fat clients was a total nightmare. Now we use java and the client is a browser, is it better? Yea, probably, but it could be simpler if all browsers worked the same. Use the technology that fits your needs. Tom K. -Original Message- From: Ivan Jouikov

RE: how to check if a String is empty?

2004-06-24 Thread Tom K
Every once in a while you see this question pop-up and the same thing happens...you get a whole bunch of answers. Remember that a String is an Object and not a primitive e.g. int, long etc. So in that regard if it is not an int but an Integer what would you use to test for an empty String. Think

log4j:WARN No appenders could be found

2004-06-17 Thread Tom K
I am using Tomcat 5.0.19 and I get the log4j:WARN No appenders could be found error on startup. I have a log4j-1.2.8.jar file in my apps /lib director. Should the log4j.properties file be in the same directory? TIA Tom K. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus

RE: How can I access a file located in WEB-INF

2004-06-16 Thread Tom K
File dir = new File(directoryName); String[] children = dir.list(); if (children == null) { // Either dir does not exist or is not a directory } else { for (int i=0; ichildren.length; i++) { // Get filename of file or directory String

RE: How can I access a file located in WEB-INF

2004-06-16 Thread Tom K
to get the path to a path (i.e., you want the fully-qualified path to WEB-INF in the current webapp, but not a specific file), you will need to append a file separator character at the end before appending a filename. Frank From: Tom K [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL

RE: Execute servlet at an interval.

2004-06-11 Thread Tom K
Try Quartz http://www.quartzscheduler.org/quartz/ Tom Kochanowicz -Original Message- From: Gabi [mailto:[EMAIL PROTECTED] Sent: Friday, June 11, 2004 2:03 AM To: [EMAIL PROTECTED] Subject: Execute servlet at an interval. Hello, I'm going to migrate a Resin to Tomcat application, I'm

RE: unable to connect to mysql db on localhost

2004-06-08 Thread Tom K
Are you using the latest connectorJ version? If so change org.gjt.mm.mysql.Driver to com.mysql.jdbc.Driver Tom Kochanowicz -Original Message- From: ilasno [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 08, 2004 9:34 PM To: [EMAIL PROTECTED] Subject: unable to connect to mysql db on

RE: Problem in inserting word document into database as a blob object under tomcat server

2004-06-07 Thread Tom K
I see you are using an Oracle database. String text; while(re.next(){ dbBlob = (oracle.sql.BLOB)rs.getBlob(1) } text = dbBlob.getSubString(1,((intdbBlob.length())); Why not use a CLOB if it's text. Now you are my wife. Tom K. -Original Message- From: Thangamani

RE: tomcat book

2004-05-21 Thread Tom K
I don't own it, but you can look on http://amazon.com for Professional Apache Tomcat 5 Tom Kochanowicz -Original Message- From: wsedio [mailto:[EMAIL PROTECTED] Sent: Friday, May 21, 2004 4:38 AM To: Tomcat Users List Subject: tomcat book Hi all, what is the best Tomcat book around?

RE: Database backups initiated from Tomcat

2004-05-19 Thread Tom K
What operating system are you using? It is possible to call System (and database) commands within java to execute the mysqldump script. For example for basically any operating system you can execute a Runtime.getRuntime().exec(String cmdline) Tom Kochanowicz -Original Message- From:

RE: Database backups initiated from Tomcat

2004-05-19 Thread Tom K
I'm not sure either, but you could try it in a sync block and see if it works and let us know ;-) I use mySQL, and this is an issue I will tangle with too...so let the list know what works for you. You might also want to look at some scheduling software like quartz

RE: Database backups initiated from Tomcat

2004-05-19 Thread Tom K
Souther [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 19, 2004 3:37 PM To: Tomcat Users List Subject: Re: Database backups initiated from Tomcat On Wednesday 19 May 2004 04:22 pm, Tom K wrote: I'm not sure either, but you could try it in a sync block and see if it works and let us know ;-) Yoav

RE: Can servlet generate a Web page first, then continue to run ?

2004-05-05 Thread Tom K
Stan, I have done something similar in a servlet by reposting to the same servlet. The way I did this is by out-putting a hidden value in the submission, then using a getParameter to retrieve this value on the next submit. The first page was the user submitting some data, which when

Problem closing connection w/pagination

2004-05-04 Thread Tom K
or forward I lose my connection. If I dont close the connection, everything works fine until I run out of pooled connections! ANY IDEAS? TIA Tom K. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.557 / Virus Database: 349

Hypersonic/Tomcat-5/ WinXP config

2004-04-21 Thread Tom K
in advance, Tom K. I have the hsqldb.jar file in my applications \lib directory and have the server.xml Context set up as follows: Context docBase=C:\\jakarta-tomcat-5.0.19\\webapps\\cheers path=/cheers Resource name=jdbc/cheerdb type=javax.sql.DataSource

RE: Hypersonic/Tomcat-5/ WinXP config

2004-04-21 Thread Tom K
Thanks Peter, I not longer get the java.lang.ClassNotFoundException: org.hsqldb.jdbcDriver I don't get 'any' exception :-( I suspect it is something in my server.xml file? Any idea/example. TIA Tom K. Server.xml !-- Example Server Configuration File -- !-- Note that component elements

RE: [OT] Pager Tag Library v2.0 usage w/Tomcat 5

2004-04-18 Thread Tom K
Thanks Eric, but would the example give me the back, forward buttons and in-between the jump to pages, for example, it looks like this: 1 2 3 4 5 6 I have the back and forward buttons working but getting the jump to a certain number page will not work. Tom K. -Original Message- From

RE: Relative directory addressing to parent directory

2004-04-17 Thread Tom K
John, relative paths are always a headache (until you do some book-learning :-)). What I do is, right after my HTML tag I put in a line like this: HTML BASE href='%=request.getScheme()+://+request.getServerName()+:+request.g etServerPort()+request.getContextPath()+/ %' What the line above does is

[OT] Pager Tag Library v2.0 usage w/Tomcat 5

2004-04-16 Thread Tom K
anyone have an example code I can see. I just dont understand the examples well enough on their web site HYPERLINK http://jsptags.com/tags/navigation/pager/index.jsphttp://jsptags.com/t ags/navigation/pager/index.jsp TIA Tom K. --- Outgoing mail is certified Virus Free. Checked by AVG anti

RE: problem with url - extra / appended before action

2004-04-02 Thread Tom K
Hi Chris, Frames are very inconsistent on different browser, so most developers try to avoid them. With that said, some times you have to tune you path to work with the classpath. First of all see where your path is pointing to by use a few commands e.g. String path =

RE: Problem with Tomcat 5.0.19 and JSTL

2004-04-01 Thread Tom K
The key to getting Tomcat 5 to work with JSP 2.0 and expression language is to copy the standard.jar and the jstl.jar (that already exists in Tomcat5s examples/lib directory) into the lib directory you are using for your app. You DO NOT have to edit the web.xml file at all but the web-app tag

RE: redirecting uploaded files in tomcat5

2004-04-01 Thread Tom K
Kay, What you need to do is copy or move the directories (on the same machine) e.g. /** * Copies all files under srcDir to dstDir, if dstDir does not exist, it * will be created. */ public void copyDirectory(File srcDir, File dstDir) throws IOException { if

Two JSTL Questions

2004-03-31 Thread Tom K
-jstl.jar OR is it the same? TIA Tom K. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003

RE: Tomcat5 - MySql5.0.0a - apache2.0 - XP - JNDI connection problems

2004-03-31 Thread Tom K
Are you using jstl tags to connect to your database? Looking at your error, I noted the path http://java.sun.com/jsp/jstl/sql You are using the preview version of mySQL (Version 5), has connectorJ been tested with it...I don't know, I'm just asking. Tom K. -Original Message- From

RE: Connection is Closed

2004-03-29 Thread Tom K
In your server.xml file if you are using connection pooling you can put a line in like this: valuejdbc:mysql://localhost:3306/Classifieds?autoReconnect=true/value -- - parameter nameurl/name

jsp:include page question.

2004-03-27 Thread Tom K
name=description value=someThing / /jsp:include Can you include a servlet with e.g. jsp:incude page=./myServlet in a jsp TIA, Tom K. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.557 / Virus Database: 349 - Release Date

RE: Fake 'alias' for sales rep pages

2004-03-27 Thread Tom K
Well...you might try using something like a response.redirect() to another url. You might need to set some type of flag in a database corresponding with there login id which would redirect them to a unique URL. Just some ideas. Sincerely, Tom K. -Original Message- From: Bryan K

RE: Question on debuggin JNDI/prepared statement in a bean

2004-03-26 Thread Tom K
but for the life of me, I can't get it working with Tomcat 5 :-( I searched all the archives and can't find a good example for doing this. TIA Tom K. -Original Message- From: Harry Mantheakis [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 2:29 AM To: Tomcat Users List

RE: Question on debuggin JNDI/prepared statement in a bean

2004-03-26 Thread Tom K
is an address. Anyone know what know how to get, what's in the address. Maybe open a stream? TIA Tom K. -Original Message- From: Harry Mantheakis [mailto:[EMAIL PROTECTED] Sent: Friday, March 26, 2004 10:43 AM To: Tomcat Users List Subject: Re: Question on debuggin JNDI/prepared

RE: Connection Pool

2004-03-25 Thread Tom K
Armalai, This is some of the parameters I noted you didn't have, BUT, they are from the Tomcat 5, so check the docs. Just by looking at the verbiage of the tags, they look like they might be helpful. Tom Kochanowicz !-- Maximum number of idle dB connections to retain in pool.

Question on debuggin JNDI/prepared statement in a bean

2004-03-25 Thread Tom K
I am frustrated trying to debug a prepared statement within a bean; what am I doing wrong?; ANY clues appreciated It is not throwing any exceptions yet I methodically went over the code; granted this is the first time I used beans versus servlets. Can anyone point me to a good example (JNDI,

Database connection going from servlet to a bean

2004-03-22 Thread Tom K
this be done in the javabean? TIA Tom K. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.557 / Virus Database: 349 - Release Date: 12/30/2003

RE: Database connection going from servlet to a bean

2004-03-22 Thread Tom K
where do I release my connection back into the pool? TIA Tom K. -Original Message- From: Mike Curwen [mailto:[EMAIL PROTECTED] Sent: Monday, March 22, 2004 1:31 PM To: 'Tomcat Users List' Subject: RE: Database connection going from servlet to a bean There is a jspInit() method in a JSP

RE: Database connection going from servlet to a bean

2004-03-22 Thread Tom K
Thanks, I will search the archives, ...you gave my an idea, it seems to me I could use the following code in my bean and call the getMatches() and forward the results to a ResultsPage.jsp. TIA Tom K. try{ Context env = (Context) new InitialContext().lookup(java:comp/env

RE: Why can't tomcat find my bean classes?

2004-03-21 Thread Tom K
Tomcat like your bean in a package. -Original Message- From: Roy Smith [mailto:[EMAIL PROTECTED] Sent: Saturday, March 20, 2004 4:31 PM To: [EMAIL PROTECTED]@jakarta.apache.org Cc: Roy Smith Subject: Why can't tomcat find my bean classes? I'm running jakarta-tomcat-5.0.18 on OSX.

Image proccessing deployment problem, Give me some Idea's where to look.

2004-03-20 Thread Tom K
This is a weird problem, so please excuse me if this is not Tomcat related because Im not sure where the problem is. Dev. Environment: Tomcat 5.0; IDE: MyEclipse, WinXP Problem: Using Jmagik (ImageMagic) to process image files. Tomcat works fine when I start Tomcat from the startup.bat and

RE: WARNING: Duplicate name in Manifest: Class-Path

2004-03-19 Thread Tom K
beyond the annoyance. Cheers, Larry -Original Message- From: Adam Hardy [mailto:[EMAIL PROTECTED] Sent: Friday, March 19, 2004 5:18 AM To: Tomcat Users List Subject: Re: WARNING: Duplicate name in Manifest: Class-Path On 03/19/2004 06:35 AM Tom K wrote: Any clues where I would

Tomcat 5 Startup Warning question

2004-03-18 Thread Tom K
Does anyone know what is causing me to get this message? Note: it prints the message 6 times before starting up! WARNING: Duplicate name in Manifest: Class-Path Mar 17, 2004 12:01:40 PM java.util.jar.Attributes read TIA Tom K. --- Outgoing mail is certified Virus Free. Checked by AVG

WARNING: Duplicate name in Manifest: Class-Path

2004-03-18 Thread Tom K
Any clues where I would look to determine where this message? Start from only happens during sart up of my application. Mar 18, 2004 11:33:48 PM java.util.jar.Attributes read WARNING: Duplicate name in Manifest: Class-Path TIA Tom K --- Outgoing mail is certified Virus Free

RE: JDBC problems with MySQL

2004-03-17 Thread Tom K
I am new to this list as of today, so I don't know if anyone has already answered your question. Tomcat will not connect to mysql unless you have a password and of course rights to the database. Here is an example. Use these mySQL commands mysql -u root (This command gives your root