Re: Using Tomcat with MSAccess
I was talking about String.equals(). Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: Beth Kelly [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 9:50 AM Subject: Re: Using Tomcat with MSAccess Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: William Kaufman [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 09, 2001 7:14 AM Subject: RE: Using Tomcat with MSAccess snip / .equals(passwd) rather than passwd.equals( ) snip / No you shouldn't. That's totally evil. For a start, you're creating another String object by doing snip/ remark As is a constant string, it is created just once. So there is not much overhead. True, other than the overhead of calling String.intern() when the class is loaded (JLS 3.10.5). (.equals might be even faster, because the jit can inline the method call, as the address of the object and the equals method is constant in this case. False. If the compiler can inline equals(), it can inline length(), too. (In fact, it's more likely to inline length(), since it's a far simpler method.) I wonder if equals() is implemented with a bitwise and. If that were the case, then the first invocation of equals would be simpler than the length method (that is with delayed lazy evaluation). (And take a look at the source for String.equals(): at best, with comparable inlining of the two methods, you've added an instanceof and a downcast, which likely swamps any time taken for the rest of the comparison.) -- Bill K.
Re: TESTING Tomcat and Apache together........
Open a static page on your server, and then open a JSP or servlet. Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: Paul Davies [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, August 04, 2001 10:54 AM Subject: TESTING Tomcat and Apache together Hi, how can I test that Apache and Tomcat are properly connected to each other. As I understand, Apache takes care of static pages, and passes dynamic ones to tomcat. How can I test this? Cheers, Paul Do You Yahoo!? Get your free @yahoo.co.uk address at http://mail.yahoo.co.uk or your free @yahoo.ie address at http://mail.yahoo.ie
Re: Is there a way to get the Referrer information from a request?
Nothing is to obvious for me. Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: Jim Seach [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 02, 2001 3:39 PM Subject: Re: Is there a way to get the Referrer information from a request? Sorry if this is too obvious, but is the request the result of a normal browser following a link embedded in a web page to get to your servlet/jsp? If you type the URL in the browser location bar, or use a custom client that doesn't set the header, it won't be there. Jim --- Beth Kelly [EMAIL PROTECTED] wrote: Good points. I printed out all of the headers fields, and values. The header does not contain a Referrer, Referer, referer, or referrer field. Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: Dan Garcia [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 02, 2001 3:20 PM Subject: Re: Is there a way to get the Referrer information from a request? On Thu, 2 Aug 2001, Beth Kelly wrote: I have read that a million times, but that field is not in the header either. I notice you keep writing it as referrer in your emails, however the proper spelling fr the -header- is referer - one r :) Note: that sometimes there won't be a referer... --Dg Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly - Original Message - From: Corey A. Johnson [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, August 02, 2001 3:05 PM Subject: Re: Is there a way to get the Referrer information from a request? this will do it: request.getHeader(referer); purposely misspell referrer. Kyle Wayne Kelly wrote: I printed out the html header, and it did not include the referrer field. Is there another way to get the referrer field? Kyle Wayne Kelly (504)391-3985 http://www.cs.uno.edu/~kkelly -- corey a. johnson cni 1.321.259.1984 1.800.264.5547 __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/