0
how can i use static resources with dynamic routes in jsp?
I am making a web page using tomcat as a server. And when working with static resources, I find it cumbersome to use almost absolute paths for all my files. Isn't there some function similar to how __dirname is used in Node.js?.
2 Respuestas
+ 2
Some ideas on stackoverflow:
https://stackoverflow.com/questions/4764405/how-to-use-relative-paths-without-including-the-context-root-name
+ 2
Tibor Santa Thanks, I'm going through some of those options, how difficult it is to work with java, I definitely prefer node