FrontController servlet pattern

How do other people using the FrontController servlet pattern manage external links for things like stylesheets, images, etc? Before we had jsp's and other things directly linked, and we used relative paths. We did this so that our application would be completely independent of it's context so we could move it around for testing, etc. But now with the front controller it's a bit more complicated. Does anyone have a good general solution to how to reference other items in the app? Does everyone just use absolute paths? Any better mechanisms?

[556 byte] By [smithsa] at [2007-9-27 9:53:08]
# 1
My this is an active forum...
smithsa at 2007-7-8 23:35:23 > top of Java-index,Other Topics,Patterns & OO Design...
# 2

I think you can use the <base href="url"> tag nested in <head> tag. if you specify the base tag, browsers will parse relative urls based on it.

ex.:

in a jsp file or servlet output

<base href="/app/test.html">

...

<img src="1.gif">

browser will look up this image at /app directory.

raynixa at 2007-7-8 23:35:23 > top of Java-index,Other Topics,Patterns & OO Design...