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
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 rule
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 =
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:
> 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
"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 re
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 up
Hi Tomcatters,
1) When using FORM with TC 3.2 beta 7 you can specify an error
page - which is nice.
Is it possible to do the same thing for BASIC ? Failed BASIC
auth results in a blank page - not great.
2) Using TC TC 3.2 beta 7 I can get BASIC to work fine -
protecting a whole app.
I tried shif
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 u
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
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 Daffin Java Developer, Netherlands.
Land: +31 (0)10 476 2412Mobile: +31 (0)6 2959
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
> 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.Comparabl
> 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
"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 rea
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 file
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
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?...
-Original
"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
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 case-insensit
"Mark G. Franz" wrote:
> DO NOT OPEN THIS ATTACHMENT!
Jeeez... you've got to be kidding me - that file was just over 1kB in size,
and contained 2 xml and 1 html file... just because your virus scanner is
paranoid doesn't mean you have to be too... and there's no way you're gonna
fit a JavaScript-
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 an
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"))"?
--
Kurt Pruenner - Haendelstrasse 17, 4020 Linz, Austria | Briareos at Olymp BBS:
"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
> what you really want to have
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,
>>
>>
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 fir
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
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 f
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 apar
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?
Bec
-- 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 a
Because object variables in Java are references, when you use == you are
comparing those references, not the objects or values themselves. For
example, in your code:
if ( user == "admin" )
Here you are comparing the reference to the user object with the reference
to the string "admin". It is
How 'bout Java's SringTokenizer?
--- Winnie Cheung <[EMAIL PROTECTED]> wrote:
> Hi, how can I split a string in JSP using Tomcat? Is there a split
> function?
> Thanks!
>
=
Wyn Easton
[EMAIL PROTECTED]
__
Do You Yahoo!?
Yahoo! Calendar - G
Winnie,
Check-out the getParameterValues()in ServletRequest.
--- Winnie Cheung <[EMAIL PROTECTED]> wrote:
> Hello,
>
> When I use get.Parameter with a LIST (SELECT) in my form, it only
> collects the first item selected! Is there a reason to this why?
>
> Thanks
>
=
Wyn Easton
[EMAIL P
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 confu
35 matches
Mail list logo