mardi 30 juillet 2019

classpath or relative path

Hi I have created a web spring project with netbeans, but I am not able to access project resources (images, css, etc). I have tried everything I know, I've even put the resources in the project classpath (/springweb2/resource.jpg). but I am not able to read those resources from the jsp pages of the project.

If I have resources in the classpath, while http: / localhost: 8080 / springweb2 is the root directory of my project, shouldn't I be able to read a resource from, for example, http: / localhost: 8080 / springweb2 / resource .jpg?




Aucun commentaire:

Enregistrer un commentaire