Browser can't access/find relative resources like CSS, images and links when calling a Servlet which forwards to a JSP

前端 未结 9 1616
小蘑菇
小蘑菇 2020-11-21 05:43

I\'m having trouble with loading CSS and images and creating links to other pages when I have a servlet forward to a JSP. Specifically, when I set my

9条回答
  •  花落未央
    2020-11-21 05:54

    You must analyse the actual HTML output, for the hint.

    By giving the path like this means "from current location", on the other hand if you start with a / that would mean "from the context".

提交回复
热议问题