Re: where to put static files?

2011-11-22 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/21/11 4:06 AM, André Warnier wrote: S Ahmed wrote: I know when I go in production I will have nginx map to this folder to serve the static files, which, as far as I understand your planned setup, would be a really bad idea. Only

Re: where to put static files?

2011-11-22 Thread André Warnier
Chris, Christopher Schultz wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 André, On 11/21/11 4:06 AM, André Warnier wrote: S Ahmed wrote: I know when I go in production I will have nginx map to this folder to serve the static files, which, as far as I understand your planned setup,

Re: where to put static files?

2011-11-21 Thread André Warnier
S Ahmed wrote: I have a spring project (web app), in my project where should I be putting my static files like images/css/javascript? In my WEB-INF like: /WEB-INF/Assets {images/css/js} I know when I go in production I will have nginx map to this folder to serve the static files, which,

Re: where to put static files?

2011-11-21 Thread Pid *
On 21 Nov 2011, at 03:15, S Ahmed sahmed1...@gmail.com wrote: I have a spring project (web app), in my project where should I be putting my static files like images/css/javascript? In my WEB-INF like: /WEB-INF/Assets {images/css/js} You can't serve files directly from WEB-INF. I know

Re: where to put static files?

2011-11-21 Thread Jan Vávra
Hello, when I started my project others told me to use apache for static content and tomcat for java/jsp. It works quite good. Tomcat is hidden under reverse proxy (mod_ajp). So static content gives apache, dynamic tomcat. Jan. I have a spring project (web app), in my project where should

Re: where to put static files?

2011-11-21 Thread Daniel Mikusa
On Mon, 2011-11-21 at 01:41 -0800, Pid * wrote: On 21 Nov 2011, at 03:15, S Ahmed sahmed1...@gmail.com wrote: I have a spring project (web app), in my project where should I be putting my static files like images/css/javascript? In my WEB-INF like: /WEB-INF/Assets {images/css/js}

Re: where to put static files?

2011-11-21 Thread André Warnier
Hi. What we are trying to say is this : The WEB-INF and META-INF sub-directories of a Tomcat webapp, are supposed to contain files that should NOT be accessed by the users. For example, in the WEB-INF and META-INF subdirectories, there are files (like WEB-INF/web.xml) which may contain

Re: where to put static files?

2011-11-21 Thread Pid *
On 21 Nov 2011, at 18:52, André Warnier a...@ice-sa.com wrote: Hi. What we are trying to say is this : The WEB-INF and META-INF sub-directories of a Tomcat webapp, are supposed to contain files that should NOT be accessed by the users. For example, in the WEB-INF and META-INF

where to put static files?

2011-11-20 Thread S Ahmed
I have a spring project (web app), in my project where should I be putting my static files like images/css/javascript? In my WEB-INF like: /WEB-INF/Assets {images/css/js} I know when I go in production I will have nginx map to this folder to serve the static files, but I just want to know