Organizational Research By

Surprising Reserch Topic

Question:JS/ CSS files not found due to path differences java, spring mvc, velocity



asked Sep 13, 2013 in Core java by anonymous
edited Sep 12, 2013
0 votes
28 views



Related Hot Questions

2 Answers

0 votes
hats because the resources you have declared are relative to the url used for accessing the view. You have to change all the static resource urls to absolute You can do this using tag change from this to "> this should generate something like this in the HTML "> Note But for this to work you should add %@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> to your jsp and include jst tag library into the webapp Edit------ For the paths referred inside in JS and CSS files , there is a work around.Use base tag to define the absolute path tags in the HTML need to use
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013
0 votes
hats because the resources you have declared are relative to the url used for accessing the view. You have to change all the static resource urls to absolute You can do this using tag change from this to "> this should generate something like this in the HTML "> Note But for this to work you should add %@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %> to your jsp and include jst tag library into the webapp Edit------ For the paths referred inside in JS and CSS files , there is a work around.Use base tag to define the absolute path tags in the HTML need to use
answered Sep 13, 2013 by anonymous
edited Sep 12, 2013

...