Tagged: #web

How to convert a maven project to a non-maven project in Eclipse

Eclipse doesn’t provide a direct way to convert a Maven web project to a non-maven structure. In this tutorial, we provide an easy 2-steps way to do this. 1- Generate war file Suppose we have an existing maven web project with the following structure: In order to convert the above project to a non-maven structure, the first thing to do...

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...

Download file from a Web Application using Servlet

This tutorial shows how to download a file from a web application using Servlet. A typical task in most web applications is to download files stored at the server side to the client’s machine, here below we provide the common way of doing this with Servlet. 1- Download File Servlet Below is an example of a typical Servlet which downloads files...