[OT] please tell a javascript/DHTML forum or mailing list
Hi all, Can any one suggest a javascript or DHTML forums. i have problems in adding a row to table using DOM. Antony Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IE 6 causes broken pipe exception
Here's a followup to: Subject: DefaultServlet throws a LOT of broken pipe exceptions on mp3s. --- I found the cause of my java.io.IOException Broken pipe errors. IE 6 is sending two GET requests for each .mp3 file. I haven't tested the behavior on IE 5.x or other plugin-handled mime types. The first GET sets the request header: user-agent = contype and is a Microsoft (ie, non-standard) attempt at data-sniffing intended to get just the header information. Tomcat 4.x starts sending the content data, but IE resets/drops the connection after 30-50k (100-500 ms), generating a Broken pipe exception. IE then sends a second request for the content using: user-agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) which completes. [see Microsoft Knowledge Base Articles: KB 293792, KB 254337, KB 310388. Note: KB 310388 describes a fix for multiple posts in IE 6 SP1 (service pack 1). Tests from an IE 6 SP1 client however still demonstrate the multiple GETs. I'm still trying to determine if the broken pipe GET is the cause of the unreliable caching behaving I'm seeing in IE 6 (symptom: IE 6 clients are downloading about 10x vs. Netscape/Safari clients; few if any 304 responses). --- So, two questions for the karmically kind: 1) Any bright ideas on a workaround for the user-agent: contype GET? At present it's double-banging my server for 100-200k files. Is there a context level mechanism for filtering, ie, blocking, requests based on headers? 2) Is this more properly a development issue? I see workarounds in the 4.1.27 and 5.x source to ignore Broken pipe exceptions and the multiple GET is apparently rooted in kludges from browser 4.x days -- but I got no hits for user-agent contype in a google of the tomcat archives. Cheers, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Disabling session management (FAQ not enough)
on 9/18/03 1:29 PM, Greg Ward wrote: I would like to completely disable Tomcat session management. I'm in Manager pathname=/dev/null / You might try: Manager classname=org.apache.catalina.session.StandardManager pathname= / Cheers, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can JSP track users in a basic authentication protected realm ?
Hi guys, Does anyone know how I can implement the above mentioned? Once they exit the protected realm (i.e. the protected folder in my htdocs), when they re-enter the site again they will be asked for a password. I have a simple basic authentication system but it doesn't track the user when it leaves the protected realm. What I wanted to do was to get the server to re-authenticate the user everytime he leaves my realm and tries to re-enter again. Some people suggested CGI, some suggest PHP.. I would like to know if JSP can do the job. If yes, what level of competence do I know JSP ?
Re[2]: A Hebrew Problem
Hello Yair! Sorry about responding with such delay, I only read the list periodically in large gulps. I'm still very interested. YZ My Goal: including a hebrew html inside a jsp page. YZ The Problem: hebrew is viewed by browser as question marks (no matter YZ charset). YZ //moving the html string to a char array. YZ %char [] c = pageExecuter.readHtml().toCharArray(); YZfor (int i=0; ic.length; i++){% YZ //displaying 'character code' 'character' YZ %= (int)c[i] %;nbsp; %= c[i] %br YZ % } % A very correct experiment! YZ in that way I can see in the browser each character's code and the YZ character itself. I'm afraid I did not understand your description. Could you attache the whole page resulting from this experiment? Or still better the result of wget -s -o file.html http://your.page.somewhere/some.jsp from this page? (I want to see the Content-Type that gets generated, the codes you get from the (int) conversion and wether the byte(s) generated by %= c[i] % are really question marks (0x3F) or something else.) Again attaching the result of wget would be better then any description. Thanks for interesting food for investigation, Yair! :-) Anton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can JSP track users in a basic authentication protected realm ?
Can you explain how Tomcat will be able to tell whether the user has navigated away and returned, versus just taken some period of time before getting the next page? -Original Message- From: David [mailto:[EMAIL PROTECTED] Sent: Saturday, September 20, 2003 9:56 AM To: Tomcat User Subject: Can JSP track users in a basic authentication protected realm ? Hi guys, Does anyone know how I can implement the above mentioned? Once they exit the protected realm (i.e. the protected folder in my htdocs), when they re-enter the site again they will be asked for a password. I have a simple basic authentication system but it doesn't track the user when it leaves the protected realm. What I wanted to do was to get the server to re-authenticate the user everytime he leaves my realm and tries to re-enter again. Some people suggested CGI, some suggest PHP.. I would like to know if JSP can do the job. If yes, what level of competence do I know JSP ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Character Set Issues (windows vs. Unix)
Hello Hans! Sorry about responding with significat delays, I'm reading the list only periodically, in gulps AT String s = rs.getString(x); AT char c = s.charAt(y); AT out.print((int)c); HL Thats exactly what I am doing. HL same result What result? What codes do you get for non-ascii characters on Unix and on Windos boxes from this test? HL I have even tried HL Reader reader = r.getCharacterStream(field_name); HL and then printing out the the char values of the stream I guess r is of the type ResultSet (sorry, Chris Rolfe, you seem to have misunderstood somthing). Okay, I beleive there is not any difference between ResultSet.getString() and ResultSet.getCharacterStream(), it will be enough to test either of them HL Its the most bizarre thing i have seen. HL ...and driving me insane! :( I like to invetigate these matters :-) So, waiting for more info from you! Anton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Can JSP track users in a basic authentication protected realm ?
Actually I do not know how to do it. I know those internet banking sites does it. They have this option of Log out for their users. When users click on that log out option, they will in effect log out of the protected realm. Should they decide to return to the same site again ( using the same instance of the IE) they will prompted for the password and ID again. Currently, with basic authentication ( implemented using HTTP SERVER) the server does not recognise if the user has moved onto another site outside the protected realm. If he decides to surf an area outside the protected realm, and decides to return to the protected realm, he will not be prompted for a password. This problem arise when the computer being used to access my protected realm is a public computer. If that is the case, users who enter my protected realm and forgot to terminate that instance of the IE is going to allow subsequent users of that machine to access my site. My question is how can I implement such a way as mentioned above ? The log out button kind of effect. Many thanks. Regards David -Original Message- From: George Sexton [mailto:[EMAIL PROTECTED] Sent: Sunday, September 21, 2003 12:47 AM To: 'Tomcat Users List' Subject: RE: Can JSP track users in a basic authentication protected realm ? Can you explain how Tomcat will be able to tell whether the user has navigated away and returned, versus just taken some period of time before getting the next page? -Original Message- From: David [mailto:[EMAIL PROTECTED] Sent: Saturday, September 20, 2003 9:56 AM To: Tomcat User Subject: Can JSP track users in a basic authentication protected realm ? Hi guys, Does anyone know how I can implement the above mentioned? Once they exit the protected realm (i.e. the protected folder in my htdocs), when they re-enter the site again they will be asked for a password. I have a simple basic authentication system but it doesn't track the user when it leaves the protected realm. What I wanted to do was to get the server to re-authenticate the user everytime he leaves my realm and tries to re-enter again. Some people suggested CGI, some suggest PHP.. I would like to know if JSP can do the job. If yes, what level of competence do I know JSP ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re[2]: Tomcat and native libs.
Hello Daniel! Can it be that the native code is plainly crashing? Or may it be related to reloading a web application? DK Unexpected Signal : 11 occurred at PC=0xFE0EAFE8 DK Function=[Unknown. Nearest: JVM_FindPrimitiveClass+0x1BB8] DK Library=/usr/j2sdk1.4.1_04/jre/lib/sparc/client/libjvm.so DK Current Java thread: Anton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Permission denied to webapps folder
This is probably something simple, but I can't seem to understand this. As suggested by a Tomcat book that I have, I gave the webapps folder rwx to the owner, and r access to everyone else. However, when I try to change to the webapps directory as any user other than the owner I get a permission denied. Shouldn't I be able to at least view whats in this directory? Thanks. Denise - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IE 6 causes broken pipe exception
Hello Chris! CR IE 6 is sending two GET requests for each .mp3 file. I haven't tested the CR behavior on IE 5.x or other plugin-handled mime types. CR The first GET sets the request header: CR user-agent = contype CR and is a Microsoft (ie, non-standard) attempt at data-sniffing intended to CR get just the header information. Tomcat 4.x starts sending the content data, CR but IE resets/drops the connection after 30-50k (100-500 ms), generating a CR Broken pipe exception. CR IE then sends a second request for the content using: CR user-agent=Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) CR which completes. CR [see Microsoft Knowledge Base Articles: KB 293792, KB 254337, KB 310388. CR Note: KB 310388 describes a fix for multiple posts in IE 6 SP1 (service pack CR 1). Tests from an IE 6 SP1 client however still demonstrate the multiple CR GETs. CR I'm still trying to determine if the broken pipe GET is the cause of the CR unreliable caching behaving I'm seeing in IE 6 (symptom: IE 6 clients are CR downloading about 10x vs. Netscape/Safari clients; few if any 304 CR responses). CR --- CR So, two questions for the karmically kind: CR 1) Any bright ideas on a workaround for the user-agent: contype GET? Yes, this can be handled by servicing your mp3 files via your own servlet. I could check for the user-agent: contype and then probably forwar the request or invoke RequestDispatcher. You may wrap the original request in the wrapper provided by the Servlet 2.3 API substituting the method GET with HEAD. (Do I remember it all correctly?) A more stratagic descision would be to build this into the Tomcat. I've entered an enahncement request to Tomcat bug database including your mail there. You may augment this enhancment request at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23294 CR At CR present it's double-banging my server for 100-200k files. Is there a context CR level mechanism for filtering, ie, blocking, requests based on headers? CR 2) Is this more properly a development issue? I see workarounds in the CR 4.1.27 and 5.x source to ignore Broken pipe exceptions This seems perfectly sane, the client may terminate connection for a multitude of reasons. CR and the multiple GET is apparently rooted in kludges from browser CR 4.x days -- Hmm, what did you mean, Chris? Anton - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Some help with jk2
Hello all. I'm trying to setup jk2. Well, actually, I'm trying to acquire build jk2. This is proving to be more than a little difficult. After going over the docs at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/index.html I think I'm more puzzled than when I started. And that's even discounting the broken document links, and the link to the mailing list archive that hasn't been accurate in more than a year! So I have some questions. 1) Is there anywhere where I can actually download a full version of the source, with required libraries, or at least a list of what else needs to be downloaded. Because the link to the src from the FAQ sure doesn't meet these requirements. 2) Whereas I know the difference between jk jk2, I don't know the difference between jakarta-tomcat-connectors-jk-1.2.4-src.tar.gz and jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz. I would assume that as jk2 is what the documentation recommends, that the second tar.gz file would be what I need, but it is close to a year older than the former file. 3) Is there in existence anywhere an actual document on how successfully to build jk(2)? Because trying to follow the instructions in the above two tar.gz files would never actually get anything in the source files to build. Any help appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: IE 6 causes broken pipe exception
on 9/20/03 11:07 AM, Anton Tagunov wrote: Hello Chris! CR IE 6 is sending two GET requests for each .mp3 file. I haven't tested the CR behavior on IE 5.x or other plugin-handled mime types. [snip] CR So, two questions for the karmically kind: CR 1) Any bright ideas on a workaround for the user-agent: contype GET? Yes, this can be handled by servicing your mp3 files via your own servlet. I could check for the user-agent: contype and then probably forwar the request or invoke RequestDispatcher. You may wrap the original request in the wrapper provided by the Servlet 2.3 API substituting the method GET with HEAD. (Do I remember it all correctly?) Remapping the contype onto a HEAD seems like a good solution. A more stratagic descision would be to build this into the Tomcat. I've entered an enahncement request to Tomcat bug database including your mail there. You may augment this enhancment request at http://nagoya.apache.org/bugzilla/show_bug.cgi?id=23294 Thanks. I'll have a look. CR At CR present it's double-banging my server for 100-200k files. Is there a context CR level mechanism for filtering, ie, blocking, requests based on headers? CR 2) Is this more properly a development issue? I see workarounds in the CR 4.1.27 and 5.x source to ignore Broken pipe exceptions This seems perfectly sane, the client may terminate connection for a multitude of reasons. CR and the multiple GET is apparently rooted in kludges from browser CR 4.x days -- Hmm, what did you mean, Chris? The contype GET has its origins in the days when servers had inconsistent support for the HEAD method and continues to pop up under various guises in IE 4, 5 + 6. So the behaviour has been around for a long, long time. I'm wildly speculating that the workarounds to suppress broken pipe exceptions might be, at least in part, motivated by the excess of broken pipes caused by IE's data-sniffing technique. cheers, Chris - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Permission denied to webapps folder
On *nix systems, you need to have 'r-x' permission to cd to a directory. Denise Mangano [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] This is probably something simple, but I can't seem to understand this. As suggested by a Tomcat book that I have, I gave the webapps folder rwx to the owner, and r access to everyone else. However, when I try to change to the webapps directory as any user other than the owner I get a permission denied. Shouldn't I be able to at least view whats in this directory? Thanks. Denise - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: DataSource.getConnection() hangs
org.apache.jasper.JasperException: Exception retrieving attribute 'driverClassName' is caused from an unrelated error in your server.xml. I fixed the problem with this error not reporting correctly but I just submitted it to be added to CVS. The root cause exception is not being returned currently so just know that it's probably not your driverClassName. Daniel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Can the web server track the users in a protected realm ?
Hi guys, Does anyone know how I can implement the above mentioned? Once they exit the protected realm (i.e. the protected folder in my htdocs), when they re-enter the site again they will be asked for a password. I have a simple basic authentication system but it doesn't track the user when it leaves the protected realm. What I wanted to do was to get the server to re-authenticate the user everytime he leaves my realm and tries to re-enter again. Some people suggested CGI, some suggest PHP.. I would like to know if JSP can do the job. If yes, what level of competence do I know JSP ? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
servlet question
hello: My environment is follow: JDK : j2sdk_1.4.2_01 Web Server : TOMCAT 5.0.0 When i devloped servlet program, such as test.java, while i typed this line : import javax.servlet.*;, javac tell me the error: F:\JAVA\upload\AccUpload.java:8: package javax.servlet.http does not exist import javax.servlet.http.*; why? can you tell me how i can resolve it? i can't find serlet.jar in directoryTOMCAT\common\lib water autumn _ MSN Messenger: http://messenger.msn.com/cn - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Some help with jk2
Hi, It wasn't that hard: you will need the file 'jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz' unzip/tar then. these are my notes, Hope they help: I compiled tomcat connectors with ./configure --with-apxs2=/usr/local/apache2/bin/apxs \ --with-tomcat41=/usr/local/tomcat\ --with-apache2-lib=/usr/local/apache2/lib \ --with-apr-lib=/usr/local/apache2/lib \ --with-jni === with apr lib because on loading tomcat I had an error: INFO: APR not loaded, disabling jni components: java.io.IOException: no jkjni in java.library.path, after configure you do: make then you copy cp build/jk2/apache2/mod_jk2.so /usr/local/apache2/modules/ cp build/jk2/apache2/jkjni.so /usr/local/apache2/modules/ then you create the simplest version of 'workers.properties' and 'jk2.properties' mentioned in the documentation. kind regards, Luke === n Sun, 2003-09-21 at 06:26, Timothy wrote: Hello all. I'm trying to setup jk2. Well, actually, I'm trying to acquire build jk2. This is proving to be more than a little difficult. After going over the docs at http://jakarta.apache.org/builds/jakarta-tomcat-connectors/jk2/doc/index.html I think I'm more puzzled than when I started. And that's even discounting the broken document links, and the link to the mailing list archive that hasn't been accurate in more than a year! So I have some questions. 1) Is there anywhere where I can actually download a full version of the source, with required libraries, or at least a list of what else needs to be downloaded. Because the link to the src from the FAQ sure doesn't meet these requirements. 2) Whereas I know the difference between jk jk2, I don't know the difference between jakarta-tomcat-connectors-jk-1.2.4-src.tar.gz and jakarta-tomcat-connectors-jk2-2.0.2-src.tar.gz. I would assume that as jk2 is what the documentation recommends, that the second tar.gz file would be what I need, but it is close to a year older than the former file. 3) Is there in existence anywhere an actual document on how successfully to build jk(2)? Because trying to follow the instructions in the above two tar.gz files would never actually get anything in the source files to build. Any help appreciated. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- when my computer smiles, I'm happy ===.~ ~, Luke Vanderfluit |'/'] Mobile: 0421 276 282\~/` - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]