RE: Problems downloading files. How to identify the CANCEL butto n?

2009-07-11 Thread siomara
Andre came up with a good reason and here is mine: I work for the brazilian government that wants to keep track of people who download certain specific files. It also wants to send emails to the ones that at least started the download procces of these files. So, for this reason, there is no intere

RE: [OT] Ignore or Trust any certificate

2009-07-11 Thread Jason Pyeron
> -Original Message- > From: kareem_s_m > Sent: Saturday, July 11, 2009 17:38 > > Thank You. I was aware of importing the certificate using > keytool and the java code to trust all certificates. I was > just wondering if there was a way to do the latter at tomcat > level. Looks like th

RE: RES: Problems downloading files. How to identify the CANCEL b utto n?

2009-07-11 Thread siomara
Sure: package servlets.comum; import java.io.*; import javax.servlet.*; import javax.servlet.http.*; import comum.ArquivoGestor; /** * Definition of class DownloadFile. */ public class DownloadFile extends HttpServlet { private String original_filename = "MYFILE.txt"; private String

Re: [OT] Ignore or Trust any certificate

2009-07-11 Thread kareem_s_m
Thank You. I was aware of importing the certificate using keytool and the java code to trust all certificates. I was just wondering if there was a way to do the latter at tomcat level. Looks like thats not possible. Thank you all for your replies. Christopher Schultz-2 wrote: > > -BEGIN PGP

Re: Strange delays after about 800 users on a server -- tomcat 4.1.27, apache 2.0.54, LB/SSL on a Cisco ACE

2009-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Shaun, On 7/8/2009 1:35 PM, Shaun Qualheim wrote: >*Tomcat 4.1.27-LE You might consider upgrading at some point. 4.1 is getting ready to be retired, and the 3 (yes 3!) versions since then all have significant performance improvements that may hel

Re: RemoteAddressValve

2009-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Leo, On 7/8/2009 10:01 AM, Leo Donahue - PLANDEVX wrote: > If I put the following nested in the element of my server.xml, > is that the right way to do it? > > privileged="true" > > allow="176.24.*.*"/> > > /> Note that it inappropriate to put

Re: Filter RequestWrapper

2009-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ivo, On 7/9/2009 6:32 AM, Ivo Silva wrote: > To both browser and Tomcat it's only one session. My filter is what > manages the "nested" sessions distribution and that's why an > identifier is required. > > Each iframe should have it's own session sin

Re: Filter RequestWrapper

2009-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pid, On 7/8/2009 1:06 PM, Pid wrote: > Filters are not applied during the RequestDispatcher.forward() operation. They can be, if configured with FORWARD in web.xml when using a Servlet 2.5-compliant webapp. > You would need to wrap any unwrapped req

Re: Running schduled jobs

2009-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ravi, On 7/10/2009 10:32 PM, Ravi Sharma wrote: > I need to run some threads at particular time during the day, does Tomcat > provide any such facility? If not then whats the other best way to go for > it. Other than webapp-oriented options, I'd like

Re: [OT] Ignore or Trust any certificate

2009-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Kareem, On 7/10/2009 2:46 PM, kareem_s_m wrote: > Is there a way in tomcat to ignore or trust any SSL certificate when > connecting to a site through https? I know there is some JAVA code for it. > But can we do it through tomcat or JVM settings too?

Re: request.setCharacterEncoding() && request.getParameter()

2009-07-11 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 7/8/2009 12:14 PM, André Warnier wrote: > 2) find out the available "locales" on the Linux host where you run this > Tomcat. > "locale -a | more" > Pick one locale that has "utf8" in the name, note its name. > In the system script that start

Re: Ignore or Trust any certificate

2009-07-11 Thread Hassan Schroeder
On Sat, Jul 11, 2009 at 12:44 AM, kareem_s_m wrote: > > I know about catching the exception. I just want to know if there is a way to > tell tomcat to ignoring or trusting any third party certificates. And I'm saying that Tomcat has *nothing to do with it*. It's your application making the reques

Re: Ignore or Trust any certificate

2009-07-11 Thread Andre-John Mas
On 11-Jul-2009, at 00:36, kareem_s_m wrote: So when my site connects to a site through HTTPS protocol, tomcat tires to validate the server certificate with the cacerts keystore in my JDK. Now if the server certificate is signed by a trusted authority then the connection is successful. B

Re: Problems downloading files. How to identify the CANCEL butto n?

2009-07-11 Thread André Warnier
Konstantin Kolinko wrote: What is the business requirement that forces you to log such information? What is the cost of a false positive? A usual example is when the customer is paying for some downloaded document. At the server side, you would want an absolute, no-complaints-possible, trace

Re: Problems downloading files. How to identify the CANCEL button?

2009-07-11 Thread André Warnier
Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 7/8/2009 6:40 AM, André Warnier wrote: The /only/ way, from a design perspective, to make sure, is some architecture whereby, at the user browser side, something checks that everything has been received, and the

Re: Problems downloading files. How to identify the CANCEL butto n?

2009-07-11 Thread Konstantin Kolinko
What is the business requirement that forces you to log such information? What is the cost of a false positive? Some time ago I experimented with AccessLogValve, trying to download some large file, to see how it logs aborted downloads. I used Firefox and pressed cancel as soon as "Save As" dialog

Re: Running schduled jobs

2009-07-11 Thread Michael Echerer
Ravi Sharma wrote: > Hi All, > I need to run some threads at particular time during the day, does Tomcat > provide any such facility? If not then whats the other best way to go for > it. > Well for scheduled jobs "Quartz" is a common tool, if java.util.Timer is not sufficient. Certainly not Tomc

Re: Ignore or Trust any certificate

2009-07-11 Thread kareem_s_m
I know about catching the exception. I just want to know if there is a way to tell tomcat to ignoring or trusting any third party certificates. Do you have idea on that? Hassan Schroeder-2 wrote: > > On Fri, Jul 10, 2009 at 9:36 PM, kareem_s_m wrote: >> >> So when my site connects to a site thro