RE: Why tomcat NT service get killed when the user log off

2000-11-18 Thread Elijah Roberts
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

RE: Why tomcat NT service get killed when the user log off

2000-11-18 Thread Nacho
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

Setting up Basic HTTP Security in tomcat jakarta

2000-11-18 Thread Anand Prasad
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 =

RE: getParameter is NOT a string?

2000-11-18 Thread Brett Bergquist
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:

Re: Integrating servlet output into JSP

2000-11-18 Thread Wyn Easton
> 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

Re: VIRUS ALERT! Re: using SSL on standalone Tomcat - Urgent !

2000-11-18 Thread Kurt Bernhard Pruenner
"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

FAQ System

2000-11-18 Thread Alex Muc
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

Authentication

2000-11-18 Thread Miles Daffin
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

Re: getParameter is NOT a string?

2000-11-18 Thread Miles Daffin
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

Re: Splitting a string?

2000-11-18 Thread Miles Daffin
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

Re: File manipulation code sample?

2000-11-18 Thread Miles Daffin
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

Re: getParameter is NOT a string?

2000-11-18 Thread Charles Forsythe
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

Re: getParameter is NOT a string?

2000-11-18 Thread Miles Daffin
> 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

Re: getParameter is NOT a string?

2000-11-18 Thread Miles Daffin
> 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

Re: VIRUS ALERT! Re: using SSL on standalone Tomcat - Urgent !

2000-11-18 Thread Craig R. McClanahan
"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

Re: Requesting / hangs Tomcat with no static interceptor?

2000-11-18 Thread Craig R. McClanahan
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

Re: Integrating servlet output into JSP

2000-11-18 Thread Craig R. McClanahan
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

Re: VIRUS ALERT! Re: using SSL on standalone Tomcat - Urgent !

2000-11-18 Thread Mark G. Franz
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

Re: VIRUS ALERT! Re: using SSL on standalone Tomcat - Urgent !

2000-11-18 Thread Craig R. McClanahan
"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

Re: getParameter is NOT a string?

2000-11-18 Thread JTBldrCO
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

Re: VIRUS ALERT! Re: using SSL on standalone Tomcat - Urgent !

2000-11-18 Thread Kurt Bernhard Pruenner
"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-

Re: can't get tomcat to compile...servlets.

2000-11-18 Thread Kurt Bernhard Pruenner
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

Re: getParameter is NOT a string?

2000-11-18 Thread Kurt Bernhard Pruenner
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:

Re: Requesting / hangs Tomcat with no static interceptor?

2000-11-18 Thread Kurt Bernhard Pruenner
"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

VIRUS ALERT! Re: using SSL on standalone Tomcat - Urgent !

2000-11-18 Thread Mark G. Franz
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, >> >>

AW: One user -> 2 parallel threads

2000-11-18 Thread Till Gartner
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

Re: One user -> 2 parallel threads

2000-11-18 Thread JTBldrCO
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

Re: One user -> 2 parallel threads

2000-11-18 Thread William Brogden
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

One user -> 2 parallel threads

2000-11-18 Thread Till Gartner
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

RE: getParameter is NOT a string?

2000-11-18 Thread Brett Bergquist
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

RE: Integrating servlet output into JSP

2000-11-18 Thread Wyn Easton
-- 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

RE: getParameter is NOT a string?

2000-11-18 Thread Cliff Rowley
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

Re: Splitting a string?

2000-11-18 Thread Wyn Easton
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

Re: JSP -- getting multiple list values?

2000-11-18 Thread Wyn Easton
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

Re: tomcat/freeBSD

2000-11-18 Thread Christoph Kukulies
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