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
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
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
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
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
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
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
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
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?
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:
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
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
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
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
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
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
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
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
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
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 =
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
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
-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
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
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
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
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
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
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
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.
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,
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
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
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
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.
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
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
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
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
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
40 matches
Mail list logo