I used to use Eclipse Galileo, but now I have Helios. Galileo used to automatically add my servlets to web.xml
, but in Helios I have to do this myself.
Is there something I can configure to make this automatic again?
Configuring and Mapping a Servlet This is done using the <servlet> element. Here you give the servlet a name, and writes the class name of the servlet. Second, you map the servlet to a URL or URL pattern. This is done in the <servlet-mapping> element.
web. xml defines mappings between URL paths and the servlets that handle requests with those paths. The web server uses this configuration to identify the servlet to handle a given request and call the class method that corresponds to the request method. For example: the doGet() method for HTTP GET requests.
This hasn't been changed. Most likely you have used New > Class instead of New > Servlet to create the servlet.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With