Tagged: #resources

How to change the default deploy path of web resources in Eclipse

When developing a web application in eclipse, the default deploy path of java classes is “WEB-INF/classes” and every folder defined under WebContent is automatically deployed under the root path of the application. 1- Custom deployment path In order to set a custom deployment path for your resources in Eclipse, you can do the following: Right-click the web project -> properties Select Deployment...

How to serve static resources in a web application

In any web application, there exists a folder named WebContent that automatically holds .class and jar files. When running a web application in eclipse or when deploying a war file to an external Tomcat, all that Tomcat needs is the WebContent folder. In this tutorial, we show 2 ways for serving static resources in a web application. 1- WebContent The standard way for...