Re: JSP in Static Resources

2013-07-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alireza, On 7/15/13 2:10 AM, Alireza Fattahi wrote: > I am using YAML framework for layout management, it has lot's of > css files to be changed, and on the other hand, if I want to set > the contentType manually I should do it every time I upgrade

Re: JSP in Static Resources

2013-07-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Alireza, On 7/13/13 6:13 AM, Alireza Fattahi wrote: > I just find a bad work around which you must put <%@page > contentType="text/css" %>in top of all css files Why don't you want to do this? This is actually the proper way to do things. Perhaps

RE: [OT] JSP in Static Resources

2013-07-15 Thread Jeffrey Janner
> -Original Message- > From: Alireza Fattahi [mailto:afatt...@yahoo.com] > Sent: Monday, July 15, 2013 4:12 AM > To: Tomcat Users List > Subject: Re: [OT] JSP in Static Resources > > > > > ~Regards, > > ~~Alireza Fattahi > > > > >

RE: JSP in Static Resources

2013-07-15 Thread Jeffrey Janner
> -Original Message- > From: Alireza Fattahi [mailto:afatt...@yahoo.com] > Sent: Monday, July 15, 2013 1:10 AM > To: Tomcat Users List > Subject: Re: JSP in Static Resources > > Hi, > > I am using YAML framework for layout management, it has lot's of css &

Re: JSP in Static Resources

2013-07-15 Thread David kerber
... * Thanks for your comments * I already see sites that do this. * For example please visit these three sites: * http://en.wikipedia.org/wiki/Apache_Tomcat * View source * * the load.php makes a dynamic css * Please visit www.ebay.com * View source *

Re: JSP in Static Resources

2013-07-15 Thread Alireza Fattahi
  ~Regards, ~~Alireza Fattahi From: André Warnier To: Tomcat Users List Sent: Monday, 15 July 2013, 14:13 Subject: Re: JSP in Static Resources Alireza Fattahi wrote: > Thanks for help! > > Let me summarize: > > There are two servlet

Re: JSP in Static Resources

2013-07-15 Thread André Warnier
Alireza Fattahi wrote: Thanks for help! Let me summarize: There are two servlets as below: 1- Default servlet which process all static resources 2- jsp servlet which process the JSP file yes. The mime types ( which are defined in localhost-config/web.xml) are only used bydefault servlet.

Re: [OT] JSP in Static Resources

2013-07-15 Thread Alireza Fattahi
> ~Regards, > ~~Alireza Fattahi > > > >  From: André Warnier > To: Tomcat Users List > Sent: Monday, 15 July 2013, 12:09 > Subject: Re: JSP in Static Resources >  > > Alireza Fattahi wrote: >> Good point, I did n

Re: [OT] JSP in Static Resources

2013-07-15 Thread André Warnier
Alireza Fattahi wrote: ~Regards, ~~Alireza Fattahi From: André Warnier To: Tomcat Users List Sent: Monday, 15 July 2013, 12:09 Subject: Re: JSP in Static Resources Alireza Fattahi wrote: Good point, I did not think about it ! What is a good

Re: JSP in Static Resources

2013-07-15 Thread Mark Thomas
On 15/07/2013 08:03, Alireza Fattahi wrote: > Thanks for help! > > Let me summarize: > > There are two servlets as below: > 1- Default servlet which process all static resources > 2- jsp servlet which process the JSP file > > The mime types ( which are defined in localhost-config/web.xml) are on

Re: JSP in Static Resources

2013-07-15 Thread Alireza Fattahi
  ~Regards, ~~Alireza Fattahi From: André Warnier To: Tomcat Users List Sent: Monday, 15 July 2013, 12:09 Subject: Re: JSP in Static Resources Alireza Fattahi wrote: > Good point, I did not think about it ! > What is a good point ? *** Consi

Re: JSP in Static Resources

2013-07-15 Thread André Warnier
hing? ~Regards, ~~Alireza Fattahi From: Tim Watts To: Tomcat Users List Sent: Monday, 15 July 2013, 3:23 Subject: Re: JSP in Static Resources On Sun, 2013-07-14 at 23:28 +0200, André Warnier wrote: Alireza Fattahi wrote: Well, If we want to follow up tha

Re: JSP in Static Resources

2013-07-15 Thread Alireza Fattahi
List Sent: Monday, 15 July 2013, 1:58 Subject: Re: JSP in Static Resources Alireza Fattahi wrote: > Well, >  > If we want to follow up that post , then we should belive that: Tomcat is an inclusive church, and you can believe what you want. Konstantin is one of the Tomcat developers ho

Re: JSP in Static Resources

2013-07-14 Thread Alireza Fattahi
please give me some references about caching? ~Regards, ~~Alireza Fattahi From: Tim Watts To: Tomcat Users List Sent: Monday, 15 July 2013, 3:23 Subject: Re: JSP in Static Resources On Sun, 2013-07-14 at 23:28 +0200, André Warnier wrote: > Alireza Fatt

Re: JSP in Static Resources

2013-07-14 Thread Alireza Fattahi
Leon Rosenberg To: Tomcat Users List ; Alireza Fattahi Sent: Monday, 15 July 2013, 4:44 Subject: Re: JSP in Static Resources Hello Alireza, what exactly was wrong with putting  contentType="text/css;charset=UTF-8" on top of your css-jsps? Actually each page should have content-t

Re: JSP in Static Resources

2013-07-14 Thread Terence M. Bandoian
On 7/13/2013 10:56 PM, Alireza Fattahi wrote: > Guys please concentrate on the main issue !! > > I ask again: > > When you set jsp servlet to process the css files by adding: > > jsp > *.css > > > > The tomcat does not set the CSS file extension mime type to text/css. > Although below li

Re: JSP in Static Resources

2013-07-14 Thread Tim Watts
On Sun, 2013-07-14 at 16:27 -0700, Hassan Schroeder wrote: > On Sun, Jul 14, 2013 at 3:53 PM, Tim Watts wrote: > > > If you don't take steps to make them cacheable, they'll be fetched > > every time on every page adding extra load on your server and the > > network. > > Which would be *the whole

Re: JSP in Static Resources

2013-07-14 Thread Leon Rosenberg
Tomcat Users List > Sent: Sunday, 14 July 2013, 12:00 > Subject: Re: JSP in Static Resources > > > Alireza Fattahi wrote: > > Guys please concentrate on the main issue !! > > I believe that "the main issue" was already answered thoroughly by > Konstantin earlier.

Re: JSP in Static Resources

2013-07-14 Thread Hassan Schroeder
On Sun, Jul 14, 2013 at 3:53 PM, Tim Watts wrote: > If you don't take steps to make them cacheable, they'll be fetched > every time on every page adding extra load on your server and the > network. Which would be *the whole point* of having dynamically generated style files, eh? :-) -- Hassan

Re: JSP in Static Resources

2013-07-14 Thread Tim Watts
of this for you. If you don't take steps to make them cacheable, they'll be fetched every time on every page adding extra load on your server and the network. > > > > > > Is that true?! > > ~Regards, > > ~~Alireza Fattahi > > > > > > _

Re: JSP in Static Resources

2013-07-14 Thread André Warnier
plement in the version of the software that you are using, then the problem to implement it is ultimately yours. Is that true?! ~Regards, ~~Alireza Fattahi From: André Warnier To: Tomcat Users List Sent: Sunday, 14 July 2013, 12:00 Subject: Re: JSP

Re: JSP in Static Resources

2013-07-14 Thread Alireza Fattahi
, 14 July 2013, 12:00 Subject: Re: JSP in Static Resources Alireza Fattahi wrote: > Guys please concentrate on the main issue !! I believe that "the main issue" was already answered thoroughly by Konstantin earlier. Did you not read it ? > > I ask again: > > When you s

Re: JSP in Static Resources

2013-07-14 Thread André Warnier
Alireza Fattahi wrote: Guys please concentrate on the main issue !! I believe that "the main issue" was already answered thoroughly by Konstantin earlier. Did you not read it ? I ask again: When you set jsp servlet to process the css files by adding: jsp *.css The tomcat does n

Re: JSP in Static Resources

2013-07-13 Thread Alireza Fattahi
Guys please concentrate on the main issue !! I ask again: When you set jsp servlet to process the css files by adding:     jsp     *.css The tomcat does not set the CSS file extension mime type to text/css. Although below line is set in localhost-config/web.xml         css     text

Re: JSP in Static Resources

2013-07-13 Thread André Warnier
%@page contentType="text/css" %>in top of all css files ~Regards, ~~Alireza Fattahi ________ From: André Warnier To: Tomcat Users List Sent: Saturday, 13 July 2013, 14:21 Subject: Re: JSP in Static Resources Alireza Fattahi wrote: Hi, I want to add some jsp code in to my site.css

Re: JSP in Static Resources

2013-07-13 Thread Terence M. Bandoian
there is nothing wrong in the /principle/ of having a CSS > file being compiled into a servlet generating a CSS document, but > somehow it does not seem the most straightforward thing to do. > > > >> >> >> The problem is that, although you set the mime type of css to

Re: JSP in Static Resources

2013-07-13 Thread André Warnier
lireza Fattahi ____ From: André Warnier To: Tomcat Users List Sent: Saturday, 13 July 2013, 14:21 Subject: Re: JSP in Static Resources Alireza Fattahi wrote: Hi, I want to add some jsp code in to my site.css. Maybe it is just me, but that does not seem to make

Re: JSP in Static Resources

2013-07-13 Thread Konstantin Kolinko
2013/7/13 Alireza Fattahi : > Hi, > > > I copied below in my web.xml > > > > *.css > text/css > > > > It did not helped ?! Is it a config for tomcat 7. I am using tomcat 6. > The eclipse says that is invalid. > Yes, it is from JSP 2.2 which requires Servl

Re: JSP in Static Resources

2013-07-13 Thread Konstantin Kolinko
2013/7/13 Alireza Fattahi : > Hi, > > My situation is this: > The site which i work should work in RTL and LTR modes ( I am using YAML for > layout) > > The site.css should have this for LTR: > > @import url(../yaml/navigation/hlist.css); > @import url(../yaml/forms/gray-theme.css); > @import url(

Re: JSP in Static Resources

2013-07-13 Thread Alireza Fattahi
top of all css files   ~Regards, ~~Alireza Fattahi From: André Warnier To: Tomcat Users List Sent: Saturday, 13 July 2013, 14:21 Subject: Re: JSP in Static Resources Alireza Fattahi wrote: > Hi, > > I want to add some jsp code in to my site.css. Maybe it

Re: JSP in Static Resources

2013-07-13 Thread André Warnier
Alireza Fattahi wrote: Hi, I want to add some jsp code in to my site.css. Maybe it is just me, but that does not seem to make any sense. Usually, it would be the other way around. Can you explain why you want to do this ? The idea of JSP is to have Java code which in the end produces a HTML p

JSP in Static Resources

2013-07-13 Thread Alireza Fattahi
Hi, I want to add some jsp code in to my site.css. So, as this is a static resource I add below to my web.xml and ask tomcat to compile it as a jsp.         jsp     *.css     When I view the site in firefox it shows an error which says: [11:46:41.547] The stylesheet site.css was not