I am testing a web application(Apache Wicket Based) via IntellijIDEA Tomcat integration. There I noticed that the webapp consider its running in bin folder of the tomcat. Also w
In IntelliJ (I'm using Ultimate 2017), the context directory is set through File > Project Structure. Under the Web Resource Directories list, IntelliJ had filled in a path ending with /webapp
by default, which didn't exist and was in red. I changed that to the folder enclosing my root-level index.jsp
. After a rebuild, my JSPs were rendering and the CSS and JS (stored in the same tree as the JSPs) were loading perfectly.