On Fri, Nov 17, 2000 at 11:42:21AM -0700, oj49 wrote:
Hi,
Anyone out there running Tomcat with the freeBSD port of JDK1.2.2 on any recent
of freeBSD? Any pointers or comments?
I cannot swaer that it was the FreeBSD port of jdk1.2 aand I'm not sure
whether it's jdk1.2.2 (with all these
-- for carnell - I lost the message link
I had a moment to look at the Tomcat source and in
RequestDispatcherImpl saw that the service() method is called
for RequestDispatcher's forward() and include().
JSP's _jspService() is like a regular servlet's service() method.
So, if you want to include
Actually the test that you want is:
if (user.compareTo("admin") == 0) {
...
}
-Original Message-
From: Cliff Rowley [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 18, 2000 7:35 AM
To: [EMAIL PROTECTED]
Subject: RE: getParameter is NOT a string?
Hi mail list,
we encounter the following problem with Tomcat. From time to time a browser
request seems to be handled by two threads from tomcat in parallel. Our own
log from java servlets shows entries of different threads doing the same
task for the same user, wich are just some milli secs
Undoubtedly the user clicked twice on the button or link and
actually created two requests.
Till Gartner wrote:
Hi mail list,
we encounter the following problem with Tomcat. From time to time a browser
request seems to be handled by two threads from tomcat in parallel. Our own
log from
So, in those cases, I've built JavaScript logic running in the browser (in
the HTML file) that will set a boolean flag to block the second (and
subsequent) click(s). Is there a simple way to handle this server-side (I
can imagine the hard ways!), or does anyone know that the client side still
You're right: We checked the Apache log and the user just double clicked.
But Netscape seems to have a bug that cannot be handled with the JavaScript
solution:
If you have your security settings in a way that he comes up with a
messagebox before sending out POSTs, he sometimes "overhears" the
DO NOT OPEN THIS ATTACHMENT!
-Original Message-
From: Craig R. McClanahan [EMAIL PROTECTED]
To: [EMAIL PROTECTED] [EMAIL PROTECTED]
Date: Friday, November 17, 2000 10:26 PM
Subject: Re: using SSL on standalone Tomcat - Urgent !
"Lacerda, Wellington (AFIS)" wrote:
Craig,
Can you
Parvez Rishi wrote:
hi,
i'm new to servlets and tomcat. i've installed tomcat with apache
1.3.12. it serves servlets and jsp's but it does not compile them.
Well, it's funny that it wouldn't compile JSPs, but Tomcat not compiling
servlets is the correct behaviour - it never has done that and
Note for newer Java programmers:
For this example, they are equivalent. But String.compareTo() returns an int
and can be used, like the C function memcmp(), to test all of , ==, and .
In addition to String.equals(), do not overlook String.equalsIngoreCase(),
should you need a
"Mark G. Franz" wrote:
DO NOT OPEN THIS ATTACHMENT!
The "Antigen for Exchange" virus scanner is broken, as you will discover if you
scan this file with any other virus scanner. Apparently it does not know what a
Java JAR file looks like.
Craig McClanahan
In response;
Antigen virus protection for Exchange found secure-only.war infected with
CorruptedCompressedFile virus. The file is currently Deleted. The message,
"Re: using SSL on standalone Tomcat - Urgent !", was
sent from Craig R. McClanahan.
Do you really want to risk it?...
Wyn Easton wrote:
-- for carnell - I lost the message link
I had a moment to look at the Tomcat source and in
RequestDispatcherImpl saw that the service() method is called
for RequestDispatcher's forward() and include().
JSP's _jspService() is like a regular servlet's service() method.
Kurt Bernhard Pruenner wrote:
"Craig R. McClanahan" wrote:
Jon Skeet wrote:
Unfortunately, this seems to mean that a request for / on the server sends
Tomcat into a tight loop (Java takes up 99% of my CPU).
The static interceptor also interprets requests for welcome files (which is
"Mark G. Franz" wrote:
In response;
Antigen virus protection for Exchange found secure-only.war infected with
CorruptedCompressedFile virus. The file is currently Deleted. The message,
"Re: using SSL on standalone Tomcat - Urgent !", was
sent from Craig R. McClanahan.
Do you really
if (user == "admin")
{
}
then it doesnt go into this condition, but goes into the ELSE instead!!!
Why is this?
You need to do some basic Java study.
The conditional test above actually asks this:
If
the explicit String type object reference 'user' points to the same
Brett Bergquist wrote:
Actually the test that you want is:
if (user.compareTo("admin") == 0) {
...
}
And how is this any different from using "if (user.equals("admin"))"?
The method 'compareTo(Object o)' is specified in java.lang.Comparable, which
Miles Daffin wrote:
Brett Bergquist wrote:
Actually the test that you want is:
if (user.compareTo("admin") == 0) {
...
}
And how is this any different from using
"if (user.equals("admin"))"?
...
'compareTo(Object o)' returns an int
...
Check out these URLs:
http://java.sun.com/docs/index.html
http://java.sun.com/docs/books/tutorial/
http://java.sun.com/j2se/1.3/docs/api/index.html
¤º°`°º¤ø,¸¸,ø¤º°`°º¤ø¤º°`°º¤ø,¸¸,ø¤º°`°º¤øø
Miles DaffinJava Developer, Netherlands.
Land: +31 (0)10 476 2412Mobile: +31 (0)6 2959
Look at the Sun API Documentation for:
*java.lang.String
* java.lang.StringBuffer
* java.util.StringTokenizer
To simply split a String up into parts (sub
strings) the java.lang.String API is all you will need.
The purpose of java.util.StringTokenizer is to
allow you to get token separated
Hi Charles,
A few notes:
1) java.lang.Comparable is new in Java2. It's not there
if you are running w/Java 1.1 (OK with Tomcat 3.x).
2) compareTo(), for Strings does a *lexical* comparison.
Semantically, this code wants to know that the user
is "admin", not that the user is
Hi Tomcatters,
1) When using auth-methodFORM with TC 3.2 beta 7 you can specify an error
page - which is nice.
Is it possible to do the same thing for auth-methodBASIC ? Failed BASIC
auth results in a blank page - not great.
2) Using TC TC 3.2 beta 7 I can get auth-methodBASIC to work fine -
Hi,
I realize some of you might consider this message to be spam. If you do
please ignore it, I'm sorry I wasted your time.
A couple of weeks ago I posted a message about an alternative to the
FAQ-O-Matic currently used on the jakarta.apache.org website. I finally
got around to packaging
"Mark G. Franz" wrote:
In response;
Antigen virus protection for Exchange found secure-only.war infected with
CorruptedCompressedFile virus. The file is currently Deleted. The message,
"Re: using SSL on standalone Tomcat - Urgent !", was
sent from Craig R. McClanahan.
Do you really
Wyn Easton wrote:
-- for carnell - I lost the message link
I had a moment to look at the Tomcat source and in
RequestDispatcherImpl saw that the service() method is called
for RequestDispatcher's forward() and include().
JSP's _jspService() is like a regular servlet's service()
Your right of course. I did not look to see that equals was specified for
the String class the way that it is. Big foot in the mouth.
-Original Message-
From: Kurt Bernhard Pruenner [mailto:[EMAIL PROTECTED]]
Sent: Saturday, November 18, 2000 11:15 AM
To: [EMAIL PROTECTED]
Subject: Re:
Hi All,
I would like to set up HTTP security using Tomcat.
Basically, I would like my files to accessed only if the user has access.
1. Could you let me know what I need to change.
I have set in server.xml file my context path to be
my context path="" the docbase=/a/b/HTML
my context path
Brett can you contributeyour solution to this problem tojakarta??
or at least send me thesources or binaries :-) is the better more
elegant solution to this problem i've seen,
if you can contribute this i'll be glad to commit it to tomcat 3.3 and
4.0
of course giving you credits as the
On Sunday November 19, 2000 Nacho wrote:
Brett can you contributeyour solution to this problem tojakarta??
or at least send me thesources or binaries :-) is the better more
elegant solution to this problem i've seen,
if you can contribute this i'll be glad to commit it to tomcat 3.3
29 matches
Mail list logo