tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <ch...@christopherschultz.net>
Subject Re: Question on META-INF/context.xml
Date Wed, 09 Dec 2009 17:51:50 GMT
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Run,

On 12/9/2009 10:57 AM, pprun wrote:
> What about those links in the static HTML? How does it access to context
> path? 

When it comes to static HTML/CSS, you have at least 4 options:

1) Hard-code the path and remember to change them if you re-deploy (good
luck)
2) Write a filter to re-write URLs in static files as they are being
delivered (lots of work, slower HTTP responses)
3) Use a deployment strategy that re-writes the URLs during deployment
(my preference)
4) Don't use static HTML/CSS

- -chris
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAksf47YACgkQ9CaO5/Lv0PA5MwCfX9OvWuxH+G6GlRx0xdQkjbTQ
sKUAnifx+yOiQ21s6PzA+7sIG9GIWXxT
=dzSM
-----END PGP SIGNATURE-----

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


Mime
View raw message