tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Morgan, Russel" <Russel.Mor...@disney.com>
Subject RE: Help Linking Static Content In a WebApp before and after (6.0.30.x)
Date Tue, 05 Jun 2012 17:57:56 GMT
Thanks yes that is the change that caused this issue with how we use static content.

I am not sure how I mangled my formatting but I went through and cleaned it up, I hope that
helps readability.

Russ


Issue formatting recap below:
=========================
Tomcat Users:

Has anyone found a graceful way to handle static content linking that works both pre and post
the the following change?
https://issues.apache.org/bugzilla/show_bug.cgi?id=50026

We have quite a few customers on earlier versions of Tomcat 6 as well as new customers picking
up later versions that are post this patch.  I am looking for some kind of work around that
works in both generations.

Here is an example of what we are doing as far as static linking in our webapp.

So on older tomcat's (prior to 6.0.30)
http://localhost:8080/cms/default/css/gopublish.css
http://localhost:8080/cms/static/css/gopublish.css
both work to hit items in the root of the webapp so .../cms(as webapp)/css/gopublish.css

On newer Tomcats: (Aka 6.0.35.1 etc etc) http://localhost:7080/cms/default/css/gopublish.css
http://localhost:7080/cms/static/css/gopublish.css
These (actually both work), but only if you have the appropriate folders created (static/default)

I can get it to work on either version, but I am looking for a "graceful" way to have it work
on both versions.

I don't see that this problem can be worked around by servlet mapping or filters, since the
core behavior has changed.

Our source (IE what we are calling the above assets from)

<link href="../static/css/gopublish.css" media="all" rel="stylesheet" type="text/css" />
<link href="../static/css/ui.css" media="all" rel="stylesheet" type="text/css" />
<script src="../static/js/jquery-1.3.2.min.js"></script>
<script src="../static/js/jquery-ui.js"></script>

Any help or insight would be appreciated.

Thanks
Russel Morgan



-----Original Message-----
From: Konstantin Kolinko [mailto:knst.kolinko@gmail.com] 
Sent: Tuesday, June 05, 2012 10:43 AM
To: Tomcat Users List
Subject: Re: Help Linking Static Content In a WebApp before and after (6.0.30.x)

You mean
https://issues.apache.org/bugzilla/show_bug.cgi?id=50026

(you e-mail formatting want wrong)


Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message