How do I set a relative deployment path

Hi there.

I have a piece of JSP that uses an image folder:


Now to use the JSP error checking, I need to set up a path to this, so I created a setup for a web resources directory:

Unfortunatately, IDEA puts a / in front of the images, which is not what I'm looking for.

I managed to get IDEA to accept /./images

but caused the IDE to lock up with a stack overflow.

How do I get IDEA to accept a relative path with no root / given (preferably without causing the IDE to fall over)?


I never use direct link references in JSPs to access static resources.

Here's how I would write it:

< img src="< c :url value="/images/rightArrow.gif"/>" .. />

everything else is likely to break sooner or later depending on various factors/deployment scenarios


Thanks, I'll give that a try; though I think I'll report the stack overflow crash anyway.

.. :)


Please sign in to leave a comment.