How to start a servlet automatically when index.jsp starts.
To put it simple, here is the index.jsp file.
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<title>JSP Test</title>
</head>
<body>
I want to put something here, so a servlet automatically starts without doing anything.
</body>
</html>