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
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
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