Resolving Webapp Path in JSP?

Hey Guys,

I'm having a problem when composing JSPs with Tomcat in Intelli-J. In the editor, every path is highlighted yellow and warns "Cannot Resolve 'filename'". My paths are all referencing inside my application context. When I remove the leading context, the paths resolve. Is there any way to tell IntelliJ to recognize the application context and resolve my files correctly?

Example:
Application Context: m1
filename: "/m1/images/testImage.jpg" will not resolve
filename: "/images/testImage.jpg" will resolve properly.

Thanks for the help!

Please sign in to leave a comment.