Re: Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Ran Berenfeld
well ...no... first evaluate, then assign. and constants are int by default. I think C/C++ would have the same problem... On Sun, Jan 16, 2011 at 1:25 PM, André Warnier wrote: > Ran Berenfeld wrote: > >> thanks :) silly me. problem solved >> > > It's more sil

Re: Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Ran Berenfeld
thanks :) silly me. problem solved On Sun, Jan 16, 2011 at 12:21 PM, Konstantin Kolinko wrote: > 2011/1/16 Ran Berenfeld : > >// cache for 1 year > >private static final long _cacheTime = (1000 * 60 * 60 * 24 * 365); > > With this sample program: > public cl

Setting HTTP response headers caching for 1 year doesn't work

2011-01-16 Thread Ran Berenfeld
Hello I'm trying to set caching for 1 year for my static context (js,css and images) however seems like caching is only done for 2-3 weeks. below I put my caching filter and a response for some js file request. I've added this code in a special "catch-all" filter and verified that all resources a

Re: Tomcat 6.0 GZIP Compression not working for large js files

2011-01-14 Thread Ran Berenfeld
re compressed correctly. it's a pity it's not documented somewhere, that the "default" tomcat settings actually fails to compress anything above 48KB size. (well actually the defaults is not to compress at all) problem is now solved, and I removed the custom gzip filter.

Tomcat 6.0 GZIP Compression not working for large js files

2011-01-13 Thread Ran Berenfeld
d that solved the problem...) Here's the relevant part of my server.xml : If anyone encountered this issue, please share :) Is there an open Tomcat ticket for it ? I couldn't find one thanks Ran -- רן ברנפלד מנהל אתר השחמט הישראלי *http://www.ichess.co.il*

Re: CSV File "Save as" dialogue defaults to HTM file

2010-01-25 Thread Ran Harpaz
Alessandro Bahgat wrote: > > On Mon, Jan 25, 2010 at 11:02 AM, Pid wrote: >> On 25/01/2010 09:17, Ran Harpaz wrote: >>> >>> Hello, I'm using Jetspeed 1.6, running on Tomcat. >>> >>> In a portlet I developed, I create a .csv file and pri

CSV File "Save as" dialogue defaults to HTM file

2010-01-25 Thread Ran Harpaz
Hello, I'm using Jetspeed 1.6, running on Tomcat. In a portlet I developed, I create a .csv file and print a link to it. The user then needs to right-click on the file and select "save file as". The dialogue that pops up defaults to file type HTML file, and replaces the .csv extension of the fil

Portlet deployment - which JAR files to include?

2008-05-18 Thread Ran Harpaz
Hello, all, I am working with Jetspeed 1.6-Tomcat 5.5.9 fusion and am trying to deploy a portlet project I created in JDeveloper. The WAR file I make is well-formed and is, in fact, deployed, but it shows me an error when I attempt to view the portlet in Jetspeed. So far, all my portlet does is

subdomain name redirect to different context path

2007-05-26 Thread Ran
Hi all, I would like to point 'forums.mysite.com' to 'www.mysite.com:8080/forums' How could I do that with tomcat conf ? or I need to match the requested url in a redirect servlet ? or is it even a DNS zone file question ? Thanks, ran

RE: multiple Tomcat on one host with multiple IPs using the same port

2007-05-10 Thread Ran Li
ISTEN 10.2.2.4.8080 *.*0 0 49152 0 LISTEN Thanks for any comments. Regards, Ran -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 09, 2007 9:14 PM To: Tomcat Users List Subject: RE: multiple Tomcat on one host

multiple Tomcat on one host with multiple IPs using the same port

2007-05-09 Thread Ran Li
n this way. Thanks. Regards, Ran - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Re[2]: PHP on Tomcat

2006-12-20 Thread Ran
Thanks Dima, I may not understand how the the php-java bridge works. It did not seem to allow a php application to run under Tomcat ? ran On 12/20/06, Dima Retov <[EMAIL PROTECTED]> wrote: Here is faster solution. http://php-java-bridge.sourceforge.net/ It runs PHP in FastCGI mode.

PHP on Tomcat

2006-12-14 Thread Ran
Hi all, I have tried the tutorial about setting up PHP on tomcat as a Servlet from wiki.tomcat, but I could not get it to work. Has anyone managed to get PHP4/5 to work on Tomcat ? Do I still need to patch source code when using php 4.4.4 ? Thanks for all advices, ran

Re: [tomcat 5.0] - DBCP pooling vs sharing a single open connection

2006-12-13 Thread Ran
Thanks Chris, Would the expensive opening database connection a issue while using Named Pipes ? (is the cost mostly coming from TCP 3 way or the xact setup/resource allocation on the db side for a new inbound connection ?) Ran On 12/13/06, Christopher Schultz <[EMAIL PROTECTED]>

Re: [tomcat 5.0] - DBCP pooling vs sharing a single open connection

2006-12-12 Thread Ran
the connection after query finishes. Do pooled connections remain open in the container while idle ? On 12/12/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: -BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Ran, Ran wrote: > My plan was to share an open-connection within a bean, pooled c

Re: [tomcat 5.0] - DBCP pooling vs sharing a single open connection

2006-12-11 Thread Ran
connection across beans. Will it exhaust the pool ? On 12/11/06, Edoardo Panfili <[EMAIL PROTECTED]> wrote: Ran wrote: > Hi all, > How does DBCP compare to application managed, single connection which stays > open to share ? Do you realy need only one connection? If you nee

[tomcat 5.0] - DBCP pooling vs sharing a single open connection

2006-12-11 Thread Ran
Hi all, How does DBCP compare to application managed, single connection which stays open to share ? Thanks, ran

How to access server configuration from a servlet

2006-06-20 Thread Smith Ran
I have a Tomcat 5.0 server running on a 1.4 JRE I was wondering if there was any way to access server configuration (in server.xml etc.) from a servlet? Is there a way to determine where the server is installed on the system etc.? I would like to basically determine the server's SSL keystore an

mod_jk problem on solaris 10

2006-02-02 Thread Ran Li
target) \ || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target `all-recursive' any