While including css, js and images in my jsps I am facing a problem resolving relative urls. The urls get changed on refreshing the page or clicking the back button. I suppose one solution to the problem would be to include external files by using absolute urls. But I can't find out how to use a reference to the relative url and use it. Can anyone please help me on this?
相关问题
- java.lang.NullPointerException at java.io.PrintWri
- h:selectOneMenu in p:dataTable doesn't submit
- UrlEncodeUnicode and browser navigation errors
- Improve converting string to readable urls
- PrimeFaces block UI does not work when the compone
相关文章
- jsp里面的画布功能,为什么会出错?求大佬找下问题
- JSP String formatting Truncate
- Forward request from servlet to jsp
- Comparing string and boolean in Expression languag
- C# HttpClient.SendAsync always returns 404 but URL
- How to allow numbers only using f:validateRegex
- Prevent $anchorScroll from modifying the url
- How does a browser handle cookie with no path and
This would also work and may be easier to read and has some extra benefits such as proper escaping and optional inclusion of parameters
Is this what you're looking for?
and then in your jsp: