I already read this document as well as Tomcat-Documentation about Contexts.
I am new with Tomcat 7 and I could not believe there is no easy way to config the context-path or to reach the relative context.
Now I am going to use this way which will take me a lot of time, but I know its working.
To safe time for anybody who is looking for similary stuff I will post the entire line which shows how to reach images flexible in Tomcat from the relative context-path within JSP.
I am also using Message.properties.
K. Tsang wrote:Back to the context path issue. Since you are using Struts, can't you use struts tags like "html:xxx"? For images would be <html:image ..... />
In fact, first I was already using <html:image and ><html:img src="< but I decided to change it because I did not find any good way to assign <bean:message.. tag to the <html:img without
using script-variables, like this snippet: